From bce0bb9af2689a0b614ba8adf4442b101aafad8c Mon Sep 17 00:00:00 2001 From: panticmilos Date: Tue, 19 Jul 2022 13:12:19 +0200 Subject: [PATCH] Update restore dependency test --- __tests__/cache-restore.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__tests__/cache-restore.test.ts b/__tests__/cache-restore.test.ts index e591ef1f..b0d44b8f 100644 --- a/__tests__/cache-restore.test.ts +++ b/__tests__/cache-restore.test.ts @@ -122,7 +122,7 @@ virtualenvs.path = "{cache-dir}/virtualenvs" # /Users/patrick/Library/Caches/py await cacheDistributor.restoreCache(); - if (process.platform === 'linux') { + if (process.platform === 'linux' && packageManager === 'pip') { expect(infoSpy).toHaveBeenCalledWith( `Cache restored from key: setup-python-${process.env['RUNNER_OS']}-Ubuntu-20.4-python-${pythonVersion}-${packageManager}-${fileHash}` );