Skip to content

Commit b94d392

Browse files
committed
fix(test): add missing clearInstallInfo() in executeUpgrade afterEach
Both executeUpgrade describe blocks (curl and nightly) call setInstallInfo() in beforeEach but were missing the matching clearInstallInfo() in afterEach, leaking DB state to subsequent tests.
1 parent 5d7d58c commit b94d392

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/lib/upgrade.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,7 @@ describe("executeUpgrade with curl method", () => {
10011001
// Ignore
10021002
}
10031003
}
1004+
clearInstallInfo();
10041005
});
10051006

10061007
test("downloads and decompresses gzip binary when .gz URL succeeds", async () => {
@@ -1272,6 +1273,7 @@ describe("executeUpgrade with curl method (nightly)", () => {
12721273
// Ignore
12731274
}
12741275
}
1276+
clearInstallInfo();
12751277
});
12761278

12771279
test("downloads and decompresses nightly binary from GHCR", async () => {

0 commit comments

Comments
 (0)