Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahtrotta committed Aug 23, 2023
1 parent 5a62f1b commit 1242327
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions test/integration/scanner/performAsAppMapsAreModified.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 1242327

Please sign in to comment.