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];