diff --git a/src/model/cloud-runner/tests/e2e/cloud-runner-end2end-caching.test.ts b/src/model/cloud-runner/tests/e2e/cloud-runner-end2end-caching.test.ts index f7c0536ab..6908d3f27 100644 --- a/src/model/cloud-runner/tests/e2e/cloud-runner-end2end-caching.test.ts +++ b/src/model/cloud-runner/tests/e2e/cloud-runner-end2end-caching.test.ts @@ -48,6 +48,7 @@ describe('Cloud Runner Caching', () => { expect(results).toContain(libraryString); expect(results).toContain(buildSucceededString); expect(results).not.toContain(cachePushFail); + expect(results.split(buildSucceededString).length - 1).toEqual(4); CloudRunnerLogger.log(`run 1 succeeded`); @@ -81,8 +82,10 @@ describe('Cloud Runner Caching', () => { expect(build2ContainsCacheKey).toBeTruthy(); expect(results2).toContain('Activation successful'); - expect(results2.split('Activation successful')[1]).not.toContain(libraryString); expect(build2ContainsBuildSucceeded).toBeTruthy(); + expect(results2).toContain(buildSucceededString); + expect(results2.split(buildSucceededString).length - 1).toEqual(4); + expect(results2.split('Activation successful')[1]).not.toContain(libraryString); expect(build2NotContainsZeroLibraryCacheFilesMessage).toBeTruthy(); expect(build2NotContainsZeroLFSCacheFilesMessage).toBeTruthy(); }, 1_000_000_000);