@@ -27,6 +27,7 @@ virtualenvs.path = "{cache-dir}/virtualenvs" # /Users/patrick/Library/Caches/py
27
27
let debugSpy : jest . SpyInstance ;
28
28
let saveSatetSpy : jest . SpyInstance ;
29
29
let getStateSpy : jest . SpyInstance ;
30
+ let setOutputSpy : jest . SpyInstance ;
30
31
31
32
// cache spy
32
33
let restoreCacheSpy : jest . SpyInstance ;
@@ -64,6 +65,9 @@ virtualenvs.path = "{cache-dir}/virtualenvs" # /Users/patrick/Library/Caches/py
64
65
return { stdout : '' , stderr : 'Error occured' , exitCode : 2 } ;
65
66
} ) ;
66
67
68
+ setOutputSpy = jest . spyOn ( core , 'setOutput' ) ;
69
+ setOutputSpy . mockImplementation ( input => undefined ) ;
70
+
67
71
restoreCacheSpy = jest . spyOn ( cache , 'restoreCache' ) ;
68
72
restoreCacheSpy . mockImplementation (
69
73
( cachePaths : string [ ] , primaryKey : string , restoreKey ?: string ) => {
@@ -100,7 +104,7 @@ virtualenvs.path = "{cache-dir}/virtualenvs" # /Users/patrick/Library/Caches/py
100
104
] ) (
101
105
'restored dependencies for %s by primaryKey' ,
102
106
async ( packageManager , pythonVersion , dependencyFile , fileHash ) => {
103
- const cacheDistributor = await getCacheDistributor (
107
+ const cacheDistributor = getCacheDistributor (
104
108
packageManager ,
105
109
pythonVersion ,
106
110
dependencyFile
@@ -126,7 +130,7 @@ virtualenvs.path = "{cache-dir}/virtualenvs" # /Users/patrick/Library/Caches/py
126
130
dependencyFile ,
127
131
cacheDependencyPath
128
132
) => {
129
- const cacheDistributor = await getCacheDistributor (
133
+ const cacheDistributor = getCacheDistributor (
130
134
packageManager ,
131
135
pythonVersion ,
132
136
dependencyFile
@@ -162,7 +166,7 @@ virtualenvs.path = "{cache-dir}/virtualenvs" # /Users/patrick/Library/Caches/py
162
166
return primaryKey !== fileHash && restoreKey ? pipFileLockHash : '' ;
163
167
}
164
168
) ;
165
- const cacheDistributor = await getCacheDistributor (
169
+ const cacheDistributor = getCacheDistributor (
166
170
packageManager ,
167
171
pythonVersion ,
168
172
dependencyFile
0 commit comments