mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 10:26:46 +00:00
ci: fix errors.
This commit is contained in:
parent
c08d2af675
commit
6f75354551
3 changed files with 12 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue