mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-04 18:55:49 +00:00
Supress logs for Catalogue_test, Import_test (#495)
This commit is contained in:
@@ -5469,7 +5469,11 @@ class Import_test : public beast::unit_test::suite
|
|||||||
// burn 100'000 coins
|
// burn 100'000 coins
|
||||||
{
|
{
|
||||||
test::jtx::Env env{
|
test::jtx::Env env{
|
||||||
*this, network::makeNetworkVLConfig(21337, keys)};
|
*this,
|
||||||
|
network::makeNetworkVLConfig(21337, keys),
|
||||||
|
nullptr,
|
||||||
|
beast::severities::kDisabled,
|
||||||
|
};
|
||||||
|
|
||||||
auto const envCoins = env.current()->info().drops;
|
auto const envCoins = env.current()->info().drops;
|
||||||
BEAST_EXPECT(envCoins == 100'000'000'000'000'000);
|
BEAST_EXPECT(envCoins == 100'000'000'000'000'000);
|
||||||
@@ -5509,7 +5513,11 @@ class Import_test : public beast::unit_test::suite
|
|||||||
// burn all coins
|
// burn all coins
|
||||||
{
|
{
|
||||||
test::jtx::Env env{
|
test::jtx::Env env{
|
||||||
*this, network::makeNetworkVLConfig(21337, keys)};
|
*this,
|
||||||
|
network::makeNetworkVLConfig(21337, keys),
|
||||||
|
nullptr,
|
||||||
|
beast::severities::kDisabled,
|
||||||
|
};
|
||||||
|
|
||||||
auto const envCoins = env.current()->info().drops;
|
auto const envCoins = env.current()->info().drops;
|
||||||
BEAST_EXPECT(envCoins == 100'000'000'000'000'000);
|
BEAST_EXPECT(envCoins == 100'000'000'000'000'000);
|
||||||
@@ -5549,7 +5557,11 @@ class Import_test : public beast::unit_test::suite
|
|||||||
// burn no coins
|
// burn no coins
|
||||||
{
|
{
|
||||||
test::jtx::Env env{
|
test::jtx::Env env{
|
||||||
*this, network::makeNetworkVLConfig(21337, keys)};
|
*this,
|
||||||
|
network::makeNetworkVLConfig(21337, keys),
|
||||||
|
nullptr,
|
||||||
|
beast::severities::kDisabled,
|
||||||
|
};
|
||||||
|
|
||||||
auto const envCoins = env.current()->info().drops;
|
auto const envCoins = env.current()->info().drops;
|
||||||
BEAST_EXPECT(envCoins == 100'000'000'000'000'000);
|
BEAST_EXPECT(envCoins == 100'000'000'000'000'000);
|
||||||
|
|||||||
@@ -101,8 +101,7 @@ class Catalogue_test : public beast::unit_test::suite
|
|||||||
{
|
{
|
||||||
testcase("catalogue_create: Invalid parameters");
|
testcase("catalogue_create: Invalid parameters");
|
||||||
using namespace test::jtx;
|
using namespace test::jtx;
|
||||||
Env env{
|
Env env{*this, envconfig(), features};
|
||||||
*this, envconfig(), features, nullptr, beast::severities::kInfo};
|
|
||||||
|
|
||||||
// No parameters
|
// No parameters
|
||||||
{
|
{
|
||||||
@@ -177,8 +176,7 @@ class Catalogue_test : public beast::unit_test::suite
|
|||||||
using namespace test::jtx;
|
using namespace test::jtx;
|
||||||
|
|
||||||
// Create environment and some test ledgers
|
// Create environment and some test ledgers
|
||||||
Env env{
|
Env env{*this, envconfig(), features};
|
||||||
*this, envconfig(), features, nullptr, beast::severities::kInfo};
|
|
||||||
prepareLedgerData(env, 5);
|
prepareLedgerData(env, 5);
|
||||||
|
|
||||||
boost::filesystem::path tempDir =
|
boost::filesystem::path tempDir =
|
||||||
@@ -217,8 +215,7 @@ class Catalogue_test : public beast::unit_test::suite
|
|||||||
{
|
{
|
||||||
testcase("catalogue_load: Invalid parameters");
|
testcase("catalogue_load: Invalid parameters");
|
||||||
using namespace test::jtx;
|
using namespace test::jtx;
|
||||||
Env env{
|
Env env{*this, envconfig(), features};
|
||||||
*this, envconfig(), features, nullptr, beast::severities::kInfo};
|
|
||||||
|
|
||||||
// No parameters
|
// No parameters
|
||||||
{
|
{
|
||||||
@@ -265,8 +262,7 @@ class Catalogue_test : public beast::unit_test::suite
|
|||||||
using namespace test::jtx;
|
using namespace test::jtx;
|
||||||
|
|
||||||
// Create environment and test data
|
// Create environment and test data
|
||||||
Env env{
|
Env env{*this, envconfig(), features};
|
||||||
*this, envconfig(), features, nullptr, beast::severities::kInfo};
|
|
||||||
prepareLedgerData(env, 5);
|
prepareLedgerData(env, 5);
|
||||||
|
|
||||||
// Store some key state information before catalogue creation
|
// Store some key state information before catalogue creation
|
||||||
@@ -322,8 +318,7 @@ class Catalogue_test : public beast::unit_test::suite
|
|||||||
*this,
|
*this,
|
||||||
test::jtx::envconfig(test::jtx::port_increment, 3),
|
test::jtx::envconfig(test::jtx::port_increment, 3),
|
||||||
features,
|
features,
|
||||||
nullptr,
|
};
|
||||||
beast::severities::kInfo};
|
|
||||||
|
|
||||||
// Now load the catalogue
|
// Now load the catalogue
|
||||||
Json::Value params{Json::objectValue};
|
Json::Value params{Json::objectValue};
|
||||||
@@ -518,8 +513,7 @@ class Catalogue_test : public beast::unit_test::suite
|
|||||||
return cfg;
|
return cfg;
|
||||||
}),
|
}),
|
||||||
features,
|
features,
|
||||||
nullptr,
|
};
|
||||||
beast::severities::kInfo};
|
|
||||||
prepareLedgerData(env1, 5);
|
prepareLedgerData(env1, 5);
|
||||||
|
|
||||||
// Create catalogue with network ID 123
|
// Create catalogue with network ID 123
|
||||||
@@ -544,8 +538,7 @@ class Catalogue_test : public beast::unit_test::suite
|
|||||||
return cfg;
|
return cfg;
|
||||||
}),
|
}),
|
||||||
features,
|
features,
|
||||||
nullptr,
|
};
|
||||||
beast::severities::kInfo};
|
|
||||||
|
|
||||||
{
|
{
|
||||||
Json::Value params{Json::objectValue};
|
Json::Value params{Json::objectValue};
|
||||||
@@ -568,8 +561,7 @@ class Catalogue_test : public beast::unit_test::suite
|
|||||||
using namespace test::jtx;
|
using namespace test::jtx;
|
||||||
|
|
||||||
// Create environment and test data
|
// Create environment and test data
|
||||||
Env env{
|
Env env{*this, envconfig(), features};
|
||||||
*this, envconfig(), features, nullptr, beast::severities::kInfo};
|
|
||||||
prepareLedgerData(env, 3);
|
prepareLedgerData(env, 3);
|
||||||
|
|
||||||
boost::filesystem::path tempDir =
|
boost::filesystem::path tempDir =
|
||||||
@@ -660,8 +652,7 @@ class Catalogue_test : public beast::unit_test::suite
|
|||||||
using namespace test::jtx;
|
using namespace test::jtx;
|
||||||
|
|
||||||
// Create environment and test data
|
// Create environment and test data
|
||||||
Env env{
|
Env env{*this, envconfig(), features};
|
||||||
*this, envconfig(), features, nullptr, beast::severities::kInfo};
|
|
||||||
prepareLedgerData(env, 3);
|
prepareLedgerData(env, 3);
|
||||||
|
|
||||||
boost::filesystem::path tempDir =
|
boost::filesystem::path tempDir =
|
||||||
@@ -736,8 +727,7 @@ class Catalogue_test : public beast::unit_test::suite
|
|||||||
using namespace test::jtx;
|
using namespace test::jtx;
|
||||||
|
|
||||||
// Create environment and test data
|
// Create environment and test data
|
||||||
Env env{
|
Env env{*this, envconfig(), features};
|
||||||
*this, envconfig(), features, nullptr, beast::severities::kInfo};
|
|
||||||
prepareLedgerData(env, 5);
|
prepareLedgerData(env, 5);
|
||||||
|
|
||||||
boost::filesystem::path tempDir =
|
boost::filesystem::path tempDir =
|
||||||
@@ -826,8 +816,7 @@ class Catalogue_test : public beast::unit_test::suite
|
|||||||
using namespace test::jtx;
|
using namespace test::jtx;
|
||||||
|
|
||||||
// Create environment
|
// Create environment
|
||||||
Env env{
|
Env env{*this, envconfig(), features};
|
||||||
*this, envconfig(), features, nullptr, beast::severities::kInfo};
|
|
||||||
|
|
||||||
boost::filesystem::path tempDir =
|
boost::filesystem::path tempDir =
|
||||||
boost::filesystem::temp_directory_path() /
|
boost::filesystem::temp_directory_path() /
|
||||||
|
|||||||
Reference in New Issue
Block a user