From 6f5e9a784f4c68e8e2728349aae5de63b304c322 Mon Sep 17 00:00:00 2001 From: Yaowu Xu Date: Thu, 17 Apr 2014 08:45:00 -0700 Subject: [PATCH] Relax the threshold for datarate test by 5% Change-Id: Ibc770df77939a68f9f0d1d78c0edd737b0d398ad --- test/datarate_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/datarate_test.cc b/test/datarate_test.cc index e8604a6d7..2b4aa3acb 100644 --- a/test/datarate_test.cc +++ b/test/datarate_test.cc @@ -145,7 +145,7 @@ TEST_P(DatarateTestLarge, BasicBufferModel) { cfg_.rc_target_bitrate = i; ResetModel(); ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); - ASSERT_GE(cfg_.rc_target_bitrate, effective_datarate_) + ASSERT_GE(cfg_.rc_target_bitrate, effective_datarate_ * 0.95) << " The datarate for the file exceeds the target!"; ASSERT_LE(cfg_.rc_target_bitrate, file_datarate_ * 1.3)