From a6f8859c700a170188ee28aad2ac33f6ebec1fe6 Mon Sep 17 00:00:00 2001 From: Frostebite Date: Thu, 11 Jan 2024 16:37:15 +0000 Subject: [PATCH] fix --- .../tests/e2e/cloud-runner-end2end-caching.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 aae018b01..81a95aca8 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 @@ -69,7 +69,6 @@ describe('Cloud Runner Caching', () => { const build2ContainsCacheKey = results2.includes(buildParameter.cacheKey); const build2ContainsBuildSucceeded = results2.includes(buildSucceededString); - const build2NotContainsNoLibraryMessage = !results2.split('Activation successful')[1].includes(libraryString); const build2NotContainsZeroLibraryCacheFilesMessage = !results2.includes( 'There is 0 files/dir in the cache pulled contents for Library', ); @@ -78,10 +77,11 @@ describe('Cloud Runner Caching', () => { ); expect(build2ContainsCacheKey).toBeTruthy(); + expect(results2).toContain('Activation successful'); + expect(results2.split('Activation successful')[1]).toContain(libraryString); expect(build2ContainsBuildSucceeded).toBeTruthy(); expect(build2NotContainsZeroLibraryCacheFilesMessage).toBeTruthy(); expect(build2NotContainsZeroLFSCacheFilesMessage).toBeTruthy(); - expect(build2NotContainsNoLibraryMessage).toBeTruthy(); }, 1_000_000_000); } });