diff options
Diffstat (limited to 'tensorflow/core/lib/core/notification_test.cc')
-rw-r--r-- | tensorflow/core/lib/core/notification_test.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tensorflow/core/lib/core/notification_test.cc b/tensorflow/core/lib/core/notification_test.cc index 8cb1c895ad..9d96708b6f 100644 --- a/tensorflow/core/lib/core/notification_test.cc +++ b/tensorflow/core/lib/core/notification_test.cc @@ -67,7 +67,9 @@ TEST(NotificationTest, TestMultipleThreadsWaitingOnNotification) { ++counter; }); } - sleep(1); + + // Sleep 1 second. + Env::Default()->SleepForMicroseconds(1 * 1000 * 1000); EXPECT_EQ(0, counter); |