Increase the dtmfsender test toleration to 100ms to avoid flaky.

BUG=2391
R=marpan@google.com

Review URL: https://webrtc-codereview.appspot.com/2248004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4780 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
wu@webrtc.org 2013-09-18 18:01:07 +00:00
parent 8bf755d5c5
commit 8d1e4d6149

View File

@ -206,9 +206,9 @@ class DtmfSenderTest : public testing::Test {
while (it_ref != dtmf_queue_ref.end() && it != dtmf_queue.end()) {
EXPECT_EQ(it_ref->code, it->code);
EXPECT_EQ(it_ref->duration, it->duration);
// Allow ~20ms error.
EXPECT_GE(it_ref->gap, it->gap - 20);
EXPECT_LE(it_ref->gap, it->gap + 20);
// Allow ~100ms error.
EXPECT_GE(it_ref->gap, it->gap - 100);
EXPECT_LE(it_ref->gap, it->gap + 100);
++it_ref;
++it;
}