1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-go synced 2025-07-02 22:36:00 +02:00

improve tests

This commit is contained in:
Sergey Dolin 2023-07-18 14:26:06 +02:00
parent 8998c6804e
commit 42a70ecdee
3 changed files with 72 additions and 36 deletions

View file

@ -43,6 +43,9 @@ describe('Windows performance workaround', () => {
jest.clearAllMocks();
process.env['RUNNER_TOOL_CACHE'] = runnerToolCache;
});
// addExecutablesToCache uses 3rd party dependency toolkit.cache under the hood
// that currently is implemented with RUNNER_TOOL_CACHE environment variable
// Make sure the implementation has not been changed
it('addExecutablesToCache should depend on env[RUNNER_TOOL_CACHE]', async () => {
const info: IGoVersionInfo = {
type: 'dist',