Skip to content

Commit

Permalink
Merge pull request #817 from Expensify/master
Browse files Browse the repository at this point in the history
Update expensify_prod branch
  • Loading branch information
cead22 authored Jun 25, 2020
2 parents dd6df32 + e13bde4 commit f293f40
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/tests/jobs/CreateJobTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ struct CreateJobTest : tpunit::TestFixture {
string data = "{\"blabla\":\"blabla\"}";
command["name"] = jobName;
command["data"] = data;
const string& startTime = SCURRENT_TIMESTAMP();
STable response = tester->executeWaitVerifyContentTable(command);
ASSERT_GREATER_THAN(stol(response["jobID"]), 0);

Expand All @@ -123,8 +124,9 @@ struct CreateJobTest : tpunit::TestFixture {
ASSERT_EQUAL(originalJob[0][1], response["jobID"]);
ASSERT_EQUAL(originalJob[0][2], "QUEUED");
ASSERT_EQUAL(originalJob[0][3], jobName);
// nextRun should equal created
ASSERT_EQUAL(originalJob[0][4], originalJob[0][0]);
// nextRun and created should be equal or higher to the time we started the test
ASSERT_TRUE(originalJob[0][0].compare(startTime) >= 0);
ASSERT_TRUE(originalJob[0][4].compare(startTime) >= 0);
ASSERT_EQUAL(originalJob[0][5], "");
ASSERT_EQUAL(originalJob[0][6], "");
ASSERT_EQUAL(originalJob[0][7], data);
Expand Down

0 comments on commit f293f40

Please sign in to comment.