mirror of
https://github.com/morluto/rea.git
synced 2026-10-11 21:39:55 +00:00
test(ci): stabilize JADX recovery and ignore generated reports (#1668)
This commit is contained in:
@@ -33,6 +33,7 @@ codedb.snapshot
|
||||
htmlcov/
|
||||
.coverage
|
||||
coverage/
|
||||
.vitest/
|
||||
.vitest-reports/
|
||||
test-results.xml
|
||||
.turbo/
|
||||
|
||||
@@ -527,6 +527,14 @@ it("retries shutdown cleanup after ownership verification recovers", async () =>
|
||||
"normal",
|
||||
() => cleanupFails,
|
||||
);
|
||||
const closeAfterRecovery = async () => {
|
||||
cleanupFails = false;
|
||||
// Closing the transport can leave the child between live and exited
|
||||
// snapshots. Retry retained ownership until cleanup is actually verified.
|
||||
await expect
|
||||
.poll(() => provider.close(), { timeout: 5_000 })
|
||||
.toBeUndefined();
|
||||
};
|
||||
try {
|
||||
const outcome = await service.execute("inspect_android_package", {
|
||||
path: apk,
|
||||
@@ -538,13 +546,11 @@ it("retries shutdown cleanup after ownership verification recovers", async () =>
|
||||
const workspace = launches[0]?.cwd;
|
||||
if (workspace === undefined) throw new Error("Expected acquired workspace");
|
||||
await expect(access(workspace)).resolves.toBeUndefined();
|
||||
cleanupFails = false;
|
||||
await provider.close();
|
||||
await closeAfterRecovery();
|
||||
await verifyCleanup(launches);
|
||||
expect(launches).toHaveLength(1);
|
||||
} finally {
|
||||
cleanupFails = false;
|
||||
await provider.close();
|
||||
await closeAfterRecovery();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user