3
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2025-06-01 06:11:22 +00:00
This commit is contained in:
whywaita 2023-10-18 01:09:16 +09:00
parent 0748517b1b
commit 589948e5a6
No known key found for this signature in database
GPG key ID: 410FE9327D2F4F0E
6 changed files with 84 additions and 28 deletions

View file

@ -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);