From b52b5a47148b6f05ed9439840dff9e3f189b3b19 Mon Sep 17 00:00:00 2001 From: Jonathan Hseu Date: Wed, 11 Apr 2018 18:57:49 -0700 Subject: Switch to WaitForNotification to fix the flaky test. See: https://source.cloud.google.com/results/invocations/31632a30-3728-4635-a456-f89b9e8b9dfe/log PiperOrigin-RevId: 192544848 --- tensorflow/core/platform/cloud/ram_file_block_cache_test.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tensorflow/core/platform/cloud/ram_file_block_cache_test.cc b/tensorflow/core/platform/cloud/ram_file_block_cache_test.cc index d555b682a6..10203783fc 100644 --- a/tensorflow/core/platform/cloud/ram_file_block_cache_test.cc +++ b/tensorflow/core/platform/cloud/ram_file_block_cache_test.cc @@ -487,8 +487,7 @@ TEST(RamFileBlockCacheTest, CoalesceConcurrentReads) { TF_EXPECT_OK(ReadCache(&cache, "", 0, block_size / 2, &out)); EXPECT_EQ(out.size(), block_size / 2); })); - EXPECT_TRUE(WaitForNotificationWithTimeout(¬ification, 10000)) - << "Timeout waiting for concurrent thread to start."; + notification.WaitForNotification(); std::vector out; TF_EXPECT_OK(ReadCache(&cache, "", block_size / 2, block_size / 2, &out)); EXPECT_EQ(out.size(), block_size / 2); -- cgit v1.2.3