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

Commit f153f7c1 authored by Miguel's avatar Miguel Committed by Miguel Aranda
Browse files

Fix ZipFilePerfTest issues by closing the file in each loop iteration.

Test: atest ZipFilePerfTest
Bug: 231407205
Change-Id: Ie37da23b9e8468588893a3d4673b6a6350631408
parent 478a6e14
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -70,6 +70,9 @@ public class ZipFilePerfTest {
        BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
        while (state.keepRunning()) {
            ZipFile zf = new ZipFile(mFile);
            state.pauseTiming();
            zf.close();
            state.resumeTiming();
        }
    }