diff options
author | 2018-04-11 18:57:49 -0700 | |
---|---|---|
committer | 2018-04-11 18:59:55 -0700 | |
commit | b52b5a47148b6f05ed9439840dff9e3f189b3b19 (patch) | |
tree | 59f57c9d5bc0b213a4b47fb36e2b1fdbef82d0d5 | |
parent | 4e29ebd67cd4409cbdfa6510b06acd780166aa9d (diff) |
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
-rw-r--r-- | tensorflow/core/platform/cloud/ram_file_block_cache_test.cc | 3 |
1 files changed, 1 insertions, 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<char> out; TF_EXPECT_OK(ReadCache(&cache, "", block_size / 2, block_size / 2, &out)); EXPECT_EQ(out.size(), block_size / 2); |