Unverified Commit 8e9c167f authored by Carlos Guerrero's avatar Carlos Guerrero Committed by GitHub
Browse files

Small message change (#195)

* Small message change

Remove dot that generates confusion in wether that's part of the key or not

* Fix format-check

* Update tests
parent e8230b28
Loading
Loading
Loading
Loading
+2 −2
Changes for __tests__/restore.test.ts: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -136,7 +136,7 @@ test("restore with no cache found", async () => {
    expect(failedMock).toHaveBeenCalledTimes(0);

    expect(infoMock).toHaveBeenCalledWith(
        `Cache not found for input keys: ${key}.`
        `Cache not found for input keys: ${key}`
    );
});

@@ -195,7 +195,7 @@ test("restore with restore keys and no cache found", async () => {
    expect(failedMock).toHaveBeenCalledTimes(0);

    expect(infoMock).toHaveBeenCalledWith(
        `Cache not found for input keys: ${key}, ${restoreKey}.`
        `Cache not found for input keys: ${key}, ${restoreKey}`
    );
});

+1 −3
Changes for src/restore.ts: 1 added line, 3 removed lines.
Original line number Diff line number Diff line
@@ -61,9 +61,7 @@ async function run(): Promise<void> {
        try {
            const cacheEntry = await cacheHttpClient.getCacheEntry(keys);
            if (!cacheEntry?.archiveLocation) {
                core.info(
                    `Cache not found for input keys: ${keys.join(", ")}.`
                );
                core.info(`Cache not found for input keys: ${keys.join(", ")}`);
                return;
            }