aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib
diff options
context:
space:
mode:
authorGravatar Todd Wang <toddw@google.com>2018-10-03 16:56:14 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-10-03 17:10:38 -0700
commitd340eb9f7ea46012b7ead202f4c12fb6b32cc56d (patch)
tree2972e578b6f74f5383b34e0862e3011ab2adfa1c /tensorflow/contrib
parent3a9a3664fe1aa9e5c81ca4959f028c2a8161520e (diff)
Increase error-epsilon for ProfilingTest::ProfilesAreCollected.
PiperOrigin-RevId: 215654327
Diffstat (limited to 'tensorflow/contrib')
-rw-r--r--tensorflow/contrib/lite/profiling/profiler_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/contrib/lite/profiling/profiler_test.cc b/tensorflow/contrib/lite/profiling/profiler_test.cc
index 0fba0450a0..cf56eed2a4 100644
--- a/tensorflow/contrib/lite/profiling/profiler_test.cc
+++ b/tensorflow/contrib/lite/profiling/profiler_test.cc
@@ -83,8 +83,8 @@ TEST(ProfilingTest, ProfilesAreCollected) {
EXPECT_EQ("SleepForQuarter", profile_events[4]->tag);
#ifndef ADDRESS_SANITIZER
- // ASAN build is sometimes very slow.
- const int eps_ms = 10;
+ // ASAN build is sometimes very slow. Set a large epsilon to avoid flakiness.
+ const int eps_ms = 50;
AssertDurationOfEventAroundMs(profile_events[0], /*expected_ms*/ 500, eps_ms);
AssertDurationOfEventAroundMs(profile_events[1], /*expected_ms*/ 250, eps_ms);
AssertDurationOfEventAroundMs(profile_events[2], /*expected_ms*/ 250, eps_ms);