mirror of
https://github.com/actions/setup-python.git
synced 2025-04-21 22:38:43 +00:00
Mock always getLinuxOS
This commit is contained in:
parent
3aec06c05e
commit
bdfd06e951
1 changed files with 2 additions and 4 deletions
|
@ -114,16 +114,14 @@ virtualenvs.path = "{cache-dir}/virtualenvs" # /Users/patrick/Library/Caches/py
|
|||
dependencyFile
|
||||
);
|
||||
|
||||
computeKeysSpy.mockImplementation(() => Promise.resolve('Ubuntu-20.4'));
|
||||
|
||||
if (process.env['RUNNER_OS'] === 'linux') {
|
||||
Object.defineProperty(utils, 'IS_LINUX', {
|
||||
value: () => {
|
||||
jest.fn().mockReturnValue(true);
|
||||
}
|
||||
});
|
||||
|
||||
computeKeysSpy.mockImplementation(() =>
|
||||
Promise.resolve('Ubuntu-20.4')
|
||||
);
|
||||
}
|
||||
|
||||
await cacheDistributor.restoreCache();
|
||||
|
|
Loading…
Add table
Reference in a new issue