Skip to content

Commit e3512c4

Browse files
Fix flaky test SyncQueueTest.ConcurrentUsage (#744)
Fix for flaky test SyncQueueTest.ConcurrentUsage which was failed due to SyncQueue emptiness check that could be true before all tasks were actually complete. Resolves: OLPEDGE-1713 Signed-off-by: Serhii Lozynskyi <[email protected]>
1 parent b99d11f commit e3512c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

olp-cpp-sdk-core/tests/thread/SyncQueueTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ TEST(SyncQueueTest, ConcurrentUsage) {
197197
1000u;
198198
};
199199

200-
while (!sync_queue.Empty() && check_condition()) {
200+
while (check_condition()) {
201201
std::this_thread::sleep_for(kSleep / 3);
202202
}
203203

0 commit comments

Comments
 (0)