Skip to content

Commit 044af38

Browse files
committed
test(runtime): give the polling native-death spec a timeout past its deadline
eventually() polls for up to 10 s; under Jasmine's default 5 s timeout a slow collection failed the spec on the timeout instead of its own deadline.
1 parent eb7ab1a commit 044af38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎test-app/app/src/main/assets/app/tests/testWrapperLifetimeModes.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ describe("Wrapper lifetime modes", function () {
307307
eventually(function () {
308308
return ref.get() === null && (!canary || stats().canaryNativeDeaths > deaths);
309309
}, done, "the Java object or its state stayed alive");
310-
});
310+
}, 20000);
311311

312312
// The contract: the state is rooted until Java collects the object, so state that
313313
// references its own object keeps it alive. Break such back references with a WeakRef.

0 commit comments

Comments
 (0)