Skip to content

Commit 3d17a1c

Browse files
committed
Changed depot cache test to use state switch.
1 parent 37709aa commit 3d17a1c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/integration/runtime_int_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,23 +217,24 @@ func (suite *RuntimeIntegrationTestSuite) TestRuntimeCache() {
217217
ts := e2e.New(suite.T(), false)
218218
defer ts.Close()
219219

220-
ts.PrepareProject("ActiveState-CLI/Empty", "b55d0e63-db48-43c4-8341-e2b7a1cc134c")
220+
ts.PrepareEmptyProject()
221221

222222
cp := ts.Spawn("install", "shared/zlib")
223223
cp.Expect("Downloading")
224224
cp.ExpectExitCode(0)
225225

226-
cp = ts.Spawn("reset", "-n") // should not remove cached shared/zlib artifact
226+
cp = ts.Spawn("switch", "mingw") // should not remove cached shared/zlib artifact
227227
cp.ExpectExitCode(0)
228228

229229
cp = ts.Spawn("install", "shared/zlib")
230+
cp.Expect("Installing")
230231
cp.ExpectExitCode(0)
231232
suite.Assert().NotContains(cp.Snapshot(), "Downloading", "shared/zlib should have been cached")
232233

233234
cp = ts.Spawn("config", "set", constants.RuntimeCacheSizeConfigKey, "0")
234235
cp.ExpectExitCode(0)
235236

236-
cp = ts.Spawn("reset", "-n") // should remove cached shared/zlib artifact
237+
cp = ts.Spawn("switch", "main") // should remove cached shared/zlib artifact
237238
cp.ExpectExitCode(0)
238239

239240
cp = ts.Spawn("install", "shared/zlib")

0 commit comments

Comments
 (0)