mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-27 05:35:51 +00:00
Fixed test cases issues
This commit is contained in:
parent
6e2c6a5916
commit
8a88690a20
2 changed files with 8 additions and 8 deletions
|
@ -333,7 +333,7 @@ test("restore with enabling save on any failure feature", async () => {
|
|||
path: path,
|
||||
key,
|
||||
restoreKeys: [restoreKey],
|
||||
saveOnAnyFailure: "true"
|
||||
saveOnAnyFailure: true
|
||||
});
|
||||
|
||||
const debugMock = jest.spyOn(core, "debug");
|
||||
|
@ -374,7 +374,7 @@ test("Fail restore when fail on cache miss is enabled and primary key not found"
|
|||
path: path,
|
||||
key,
|
||||
restoreKeys: [restoreKey],
|
||||
strictRestore: "true"
|
||||
failOnCacheMiss: true
|
||||
});
|
||||
|
||||
const failedMock = jest.spyOn(core, "setFailed");
|
||||
|
@ -408,7 +408,7 @@ test("Fail restore when fail on cache miss is enabled and primary key doesn't ma
|
|||
path: path,
|
||||
key,
|
||||
restoreKeys: [restoreKey],
|
||||
strictRestore: "true"
|
||||
failOnCacheMiss: true
|
||||
});
|
||||
|
||||
const failedMock = jest.spyOn(core, "setFailed");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue