Commit 8f3943d8 authored by Yaowu Xu's avatar Yaowu Xu Committed by Gerrit Code Review
Browse files

Merge "Relax the threshold for datarate test by 5%"

parents 96a381c2 6f5e9a78
...@@ -145,7 +145,7 @@ TEST_P(DatarateTestLarge, BasicBufferModel) { ...@@ -145,7 +145,7 @@ TEST_P(DatarateTestLarge, BasicBufferModel) {
cfg_.rc_target_bitrate = i; cfg_.rc_target_bitrate = i;
ResetModel(); ResetModel();
ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); 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!"; << " The datarate for the file exceeds the target!";
ASSERT_LE(cfg_.rc_target_bitrate, file_datarate_ * 1.3) ASSERT_LE(cfg_.rc_target_bitrate, file_datarate_ * 1.3)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment