Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8be82ea1 authored by Rhed Jao's avatar Rhed Jao
Browse files

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
parent e96bcd52
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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) {