mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-06-01 06:11:22 +00:00
Fix test
This commit is contained in:
parent
0748517b1b
commit
589948e5a6
6 changed files with 84 additions and 28 deletions
|
@ -170,7 +170,9 @@ test("save on GHES with AC available", async () => {
|
|||
{
|
||||
uploadChunkSize: 4000000
|
||||
},
|
||||
false
|
||||
false,
|
||||
undefined,
|
||||
""
|
||||
);
|
||||
|
||||
expect(failedMock).toHaveBeenCalledTimes(0);
|
||||
|
@ -266,7 +268,9 @@ test("save with large cache outputs warning", async () => {
|
|||
[inputPath],
|
||||
primaryKey,
|
||||
expect.anything(),
|
||||
false
|
||||
false,
|
||||
undefined,
|
||||
""
|
||||
);
|
||||
|
||||
expect(logWarningMock).toHaveBeenCalledTimes(1);
|
||||
|
@ -313,7 +317,9 @@ test("save with reserve cache failure outputs warning", async () => {
|
|||
[inputPath],
|
||||
primaryKey,
|
||||
expect.anything(),
|
||||
false
|
||||
false,
|
||||
undefined,
|
||||
""
|
||||
);
|
||||
|
||||
expect(logWarningMock).toHaveBeenCalledWith(
|
||||
|
@ -356,7 +362,9 @@ test("save with server error outputs warning", async () => {
|
|||
[inputPath],
|
||||
primaryKey,
|
||||
expect.anything(),
|
||||
false
|
||||
false,
|
||||
undefined,
|
||||
""
|
||||
);
|
||||
|
||||
expect(logWarningMock).toHaveBeenCalledTimes(1);
|
||||
|
@ -401,7 +409,9 @@ test("save with valid inputs uploads a cache", async () => {
|
|||
{
|
||||
uploadChunkSize: 4000000
|
||||
},
|
||||
false
|
||||
false,
|
||||
undefined,
|
||||
""
|
||||
);
|
||||
|
||||
expect(failedMock).toHaveBeenCalledTimes(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue