ci: fix errors.

This commit is contained in:
Florian Meriaux 2022-04-04 16:40:40 +02:00
parent c08d2af675
commit 6f75354551
No known key found for this signature in database
GPG key ID: A3F999CB41DB6BE2
3 changed files with 12 additions and 2 deletions

View file

@ -220,7 +220,7 @@ describe('dependency cache', () => {
});
it('does not upload cache if no restore run before', async () => {
createFile(join(workspace, 'build.sbt'));
await save('sbt');
expect(spyCacheSave).not.toBeCalled();
expect(spyWarning).toBeCalledWith('Error retrieving key from state.');
@ -228,7 +228,7 @@ describe('dependency cache', () => {
it('uploads cache', async () => {
createFile(join(workspace, 'build.sbt'));
createStateForSuccessfulRestore();
await save('sbt');
expect(spyCacheSave).toBeCalled();
expect(spyWarning).not.toBeCalled();