From 8be82ea17387bd4e1baba05ebe22081cd5d40303 Mon Sep 17 00:00:00 2001 From: Rhed Jao Date: Mon, 19 Oct 2020 12:16:34 +0800 Subject: 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 --- cmds/dumpstate/tests/dumpstate_smoke_test.cpp | 4 ++-- 1 file 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) { -- cgit v1.2.3-59-g8ed1b