mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Make unit tests repeatable
This commit is contained in:
@@ -58,9 +58,13 @@ public:
|
||||
// When booted, we just get a null json response
|
||||
if(jv.isNull())
|
||||
booted = true;
|
||||
else
|
||||
BEAST_EXPECT(jv.isMember(jss::status)
|
||||
&& (jv[jss::status] == "success"));
|
||||
else if (!(jv.isMember(jss::status) &&
|
||||
(jv[jss::status] == "success")))
|
||||
{
|
||||
// Don't use BEAST_EXPECT above b/c it will be called a non-deterministic number of times
|
||||
// and the number of tests run should be deterministic
|
||||
fail();
|
||||
}
|
||||
|
||||
if(jv.isMember(jss::warning))
|
||||
warned = jv[jss::warning] == jss::load;
|
||||
|
||||
Reference in New Issue
Block a user