Skip to content

Commit 0802173

Browse files
Fix a timeout in TaskContextTest.BlockingCancelIsWaiting test.
Sometimes 0ms timeout is not enough, and test fails. Resolves: OLPEDGE-989 Signed-off-by: Mykhailo Kuchma <[email protected]>
1 parent 4980310 commit 0802173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

olp-cpp-sdk-dataservice-read/tests/TaskContextTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ TEST(TaskContextTest, BlockingCancelIsWaiting) {
173173

174174
EXPECT_EQ(response_received, 1);
175175
EXPECT_FALSE(response.IsSuccessful());
176-
EXPECT_EQ(cancel_finished.wait_for(std::chrono::milliseconds(0)),
176+
EXPECT_EQ(cancel_finished.wait_for(std::chrono::milliseconds(10)),
177177
std::future_status::ready);
178178
EXPECT_EQ(response.GetError().GetErrorCode(), ErrorCode::Cancelled);
179179
}

0 commit comments

Comments
 (0)