We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 708b68f commit 97d7de3Copy full SHA for 97d7de3
integ-testing/src/main/java/com/google/firebase/testing/integ/StrictModeRule.java
@@ -129,6 +129,7 @@ public void evaluate() throws Throwable {
129
} finally {
130
InstrumentationRegistry.getInstrumentation()
131
.runOnMainSync(() -> StrictMode.setThreadPolicy(originalThreadPolicy.get()));
132
+ // Make sure GC happens, so that the VM policy can detect unclosed resources.
133
runGc();
134
StrictMode.setVmPolicy(originalVmPolicy);
135
}
0 commit comments