diff options
| author | 2020-10-19 12:16:34 +0800 | |
|---|---|---|
| committer | 2020-10-19 04:38:15 +0000 | |
| commit | 8be82ea17387bd4e1baba05ebe22081cd5d40303 (patch) | |
| tree | 26ac965d77a399eda2c991a871d02afe96498832 | |
| parent | e96bcd52a008a25139acf07050a6dc3a5d153009 (diff) | |
Fixes dumpstate_smoke_test failed #2
- Updates ZippedBugreportGenerationTest#Is3MBMBinSize to 1MB size.
It's too large to pass the test for devices which do not contain
lots of logs.
Bug: 159685871
Test: atest dumpstate_smoke_test
Change-Id: I6944666d85619f87f49d84798a42648f6ce9e120
| -rw-r--r-- | cmds/dumpstate/tests/dumpstate_smoke_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/dumpstate/tests/dumpstate_smoke_test.cpp b/cmds/dumpstate/tests/dumpstate_smoke_test.cpp index bb0e5ad148..2c800c6882 100644 --- a/cmds/dumpstate/tests/dumpstate_smoke_test.cpp +++ b/cmds/dumpstate/tests/dumpstate_smoke_test.cpp @@ -239,10 +239,10 @@ TEST_F(ZippedBugreportGenerationTest, IsGeneratedWithoutErrors) { EXPECT_EQ(access(getZipFilePath().c_str(), F_OK), 0); } -TEST_F(ZippedBugreportGenerationTest, Is3MBMBinSize) { +TEST_F(ZippedBugreportGenerationTest, Is1MBMBinSize) { struct stat st; EXPECT_EQ(stat(getZipFilePath().c_str(), &st), 0); - EXPECT_GE(st.st_size, 3000000 /* 3MB */); + EXPECT_GE(st.st_size, 1000000 /* 1MB */); } TEST_F(ZippedBugreportGenerationTest, TakesBetween30And300Seconds) { |