Restore original behavior of cache-hit output

This commit is contained in:
Josh Gross 2024-10-08 12:55:55 -04:00
parent 2cdf405574
commit dacbcb8908
No known key found for this signature in database
7 changed files with 15 additions and 9 deletions

View file

@ -260,7 +260,7 @@ test("Fail restore when fail on cache miss is enabled and primary + restore keys
);
expect(stateMock).toHaveBeenCalledWith("CACHE_KEY", key);
expect(setCacheHitOutputMock).toHaveBeenCalledTimes(1);
expect(setCacheHitOutputMock).toHaveBeenCalledTimes(0);
expect(failedMock).toHaveBeenCalledWith(
`Failed to restore cache entry. Exiting as fail-on-cache-miss is set. Input key: ${key}`