From 1242327d84eb26f935696f3ee2694963777dec29 Mon Sep 17 00:00:00 2001 From: Adam Trotta Date: Wed, 23 Aug 2023 13:49:44 -0400 Subject: [PATCH] test --- .../scanner/performAsAppMapsAreModified.test.ts | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/test/integration/scanner/performAsAppMapsAreModified.test.ts b/test/integration/scanner/performAsAppMapsAreModified.test.ts index b0e7b5de1..bbc6718f7 100644 --- a/test/integration/scanner/performAsAppMapsAreModified.test.ts +++ b/test/integration/scanner/performAsAppMapsAreModified.test.ts @@ -49,17 +49,10 @@ describe('Scanner', () => { () => existsSync(join(ExampleAppMapIndexDir, 'mtime')) ); - await repeatUntil( - async () => await restoreFile(appMapPath), - 'No Diagnostics were created for Microposts_controller_can_get_microposts_as_JSON', - async () => { - waitFor( - 'diagnostics to be created', - () => getDiagnosticsForAppMap(ExampleAppMap).length > 0, - 1000 - ); - return getDiagnosticsForAppMap(ExampleAppMap).length > 0; - } + waitFor( + 'Diagnostics to be created', + () => getDiagnosticsForAppMap(ExampleAppMap).length > 0, + 1000 ); const diagnostic = getDiagnosticsForAppMap(ExampleAppMap)[0];