mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-05-19 14:24:45 +00:00
Update tests for deleteCacheByKey.
And rebuild. Signed-off-by: Gregorio Litenstein <g.litenstein@gmail.com>
This commit is contained in:
parent
0417c21165
commit
da1b6c90c6
8 changed files with 314 additions and 1580 deletions
|
@ -492,7 +492,11 @@ test("save with cache hit and refresh-cache will try to delete and re-create ent
|
|||
);
|
||||
expect(infoMock).toHaveBeenNthCalledWith(
|
||||
2,
|
||||
`Succesfully deleted cache with key: ${primaryKey}`
|
||||
expect.stringMatching(
|
||||
new RegExp(
|
||||
`Succesfully deleted cache with key: ${primaryKey}, id: \\d+`
|
||||
)
|
||||
)
|
||||
);
|
||||
expect(infoMock).toHaveBeenNthCalledWith(
|
||||
3,
|
||||
|
@ -565,7 +569,11 @@ test("Granular save will use lookup to determine if cache needs to be updated or
|
|||
);
|
||||
expect(infoMock).toHaveBeenNthCalledWith(
|
||||
2,
|
||||
`Succesfully deleted cache with key: ${primaryKey}`
|
||||
expect.stringMatching(
|
||||
new RegExp(
|
||||
`Succesfully deleted cache with key: ${primaryKey}, id: \\d+`
|
||||
)
|
||||
)
|
||||
);
|
||||
expect(infoMock).toHaveBeenNthCalledWith(
|
||||
3,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue