Skip to content

Commit

Permalink
Fix a timeout in TaskContextTest.BlockingCancelIsWaiting test.
Browse files Browse the repository at this point in the history
Sometimes 0ms timeout is not enough, and test fails.

Resolves: OLPEDGE-989

Signed-off-by: Mykhailo Kuchma <ext-mykhailo.kuchma@here.com>
  • Loading branch information
mykhailo-kuchma committed Oct 31, 2019
1 parent 4980310 commit 0802173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion olp-cpp-sdk-dataservice-read/tests/TaskContextTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ TEST(TaskContextTest, BlockingCancelIsWaiting) {

EXPECT_EQ(response_received, 1);
EXPECT_FALSE(response.IsSuccessful());
EXPECT_EQ(cancel_finished.wait_for(std::chrono::milliseconds(0)),
EXPECT_EQ(cancel_finished.wait_for(std::chrono::milliseconds(10)),
std::future_status::ready);
EXPECT_EQ(response.GetError().GetErrorCode(), ErrorCode::Cancelled);
}
Expand Down

0 comments on commit 0802173

Please sign in to comment.