Skip to content

Commit

Permalink
Flash: Set quorum threshold to %100
Browse files Browse the repository at this point in the history
these tests fail often because network decides
to externalize an empty block from time to time.

Setting the quorum threshold to %100 will hopefully
help.
  • Loading branch information
omerfirmak authored and Geod24 committed Jul 23, 2021
1 parent 3435a42 commit 7b05ab7
Showing 1 changed file with 44 additions and 11 deletions.
55 changes: 44 additions & 11 deletions source/agora/test/Flash.d
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,10 @@ private class FlashListener : TestFlashListenerAPI
//version (none)
unittest
{
TestConf conf = { payout_period : 100 };
TestConf conf = {
quorum_threshold : 100,
payout_period : 100
};
auto network = makeTestNetwork!TestAPIManager(conf);
network.start();
scope (exit) network.shutdown();
Expand Down Expand Up @@ -673,7 +676,10 @@ unittest
//version (none)
unittest
{
TestConf conf = { payout_period : 100 };
TestConf conf = {
quorum_threshold : 100,
payout_period : 100
};
auto network = makeTestNetwork!TestAPIManager(conf);
network.start();
scope (exit) network.shutdown();
Expand Down Expand Up @@ -806,7 +812,10 @@ unittest
}
}

TestConf conf = { payout_period : 100 };
TestConf conf = {
quorum_threshold : 100,
payout_period : 100
};
auto network = makeTestNetwork!TestAPIManager(conf);
network.start();
scope (exit) network.shutdown();
Expand Down Expand Up @@ -915,7 +924,10 @@ unittest
//version (none)
unittest
{
TestConf conf = { payout_period : 100 };
TestConf conf = {
quorum_threshold : 100,
payout_period : 100
};
auto network = makeTestNetwork!TestAPIManager(conf);
network.start();
scope (exit) network.shutdown();
Expand Down Expand Up @@ -1070,7 +1082,10 @@ unittest
/// Test path probing
unittest
{
TestConf conf = { payout_period : 100 };
TestConf conf = {
quorum_threshold : 100,
payout_period : 100
};
auto network = makeTestNetwork!TestAPIManager(conf);
network.start();
scope (exit) network.shutdown();
Expand Down Expand Up @@ -1247,7 +1262,10 @@ unittest
/// Test path probing
unittest
{
TestConf conf = { payout_period : 100 };
TestConf conf = {
quorum_threshold : 100,
payout_period : 100
};
auto network = makeTestNetwork!TestAPIManager(conf);
network.start();
scope (exit) network.shutdown();
Expand Down Expand Up @@ -1483,7 +1501,10 @@ unittest
}
}

TestConf conf = { payout_period : 100 };
TestConf conf = {
quorum_threshold : 100,
payout_period : 100
};
auto network = makeTestNetwork!TestAPIManager(conf);
network.start();
scope (exit) network.shutdown();
Expand Down Expand Up @@ -1568,7 +1589,10 @@ unittest
//version (none)
unittest
{
TestConf conf = { payout_period : 100 };
TestConf conf = {
quorum_threshold : 100,
payout_period : 100
};
auto network = makeTestNetwork!TestAPIManager(conf);
network.start();
scope (exit) network.shutdown();
Expand Down Expand Up @@ -1660,7 +1684,10 @@ unittest
/// test various error cases
unittest
{
TestConf conf = { payout_period : 100 };
TestConf conf = {
quorum_threshold : 100,
payout_period : 100
};
auto network = makeTestNetwork!TestAPIManager(conf);
network.start();
scope (exit) network.shutdown();
Expand Down Expand Up @@ -1872,7 +1899,10 @@ unittest
}
}

TestConf conf = { payout_period : 100 };
TestConf conf = {
quorum_threshold : 100,
payout_period : 100
};
auto network = makeTestNetwork!TestAPIManager(conf);
network.start();
scope (exit) network.shutdown();
Expand Down Expand Up @@ -1987,7 +2017,10 @@ unittest
}
}

TestConf conf = { payout_period : 100 };
TestConf conf = {
quorum_threshold : 100,
payout_period : 100
};
auto network = makeTestNetwork!TestAPIManager(conf);
network.start();
scope (exit) network.shutdown();
Expand Down

0 comments on commit 7b05ab7

Please sign in to comment.