Work around bot filesystem flakiness in MixingTest.
TBR=braveyao Review URL: https://webrtc-codereview.appspot.com/780004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@2716 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -112,8 +112,10 @@ class MixingTest : public AfterInitializationFixture {
|
||||
EXPECT_GE(output_value, min_output_value);
|
||||
}
|
||||
// Ensure the recording length is close to the duration of the test.
|
||||
// We have to use a relaxed tolerance here due to filesystem flakiness on
|
||||
// the bots.
|
||||
ASSERT_GE((samples_read * 1000.0) / kSampleRateHz,
|
||||
0.9 * (kTestDurationMs - kSkipOutputMs));
|
||||
0.7 * (kTestDurationMs - kSkipOutputMs));
|
||||
// Ensure we read the entire file.
|
||||
ASSERT_NE(0, feof(output_file));
|
||||
ASSERT_EQ(0, fclose(output_file));
|
||||
|
Reference in New Issue
Block a user