Skip to content

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ahtrotta committed Aug 23, 2023
1 parent 2fc19e1 commit d9eff32
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/integration/scanner/performAsAppMapsAreModified.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import {
executeWorkspaceOSCommand,
} from '../util';

async function getWatches(): Promise<string> {
async function logWatches(): Promise<void> {
const watches = await executeWorkspaceOSCommand('ps -ef | grep -e --watch', ProjectA);
return watches;
console.log('Watches: ', watches);
}

describe('Scanner', () => {
Expand Down Expand Up @@ -47,25 +47,25 @@ describe('Scanner', () => {
// `AppMap index dir should be removed`,
// async () => !existsSync(ExampleAppMapIndexDir)
// );
let watches = await getWatches();
console.log('Wactches: ', watches);
await logWatches();

const appMapPath = relative(ProjectA, ExampleAppMap);
await repeatUntil(
async () => await restoreFile(appMapPath),
`AppMap should be reindexed`,
() => existsSync(join(ExampleAppMapIndexDir, 'appmap-findings.json'))
async () => {
await logWatches();
return existsSync(join(ExampleAppMapIndexDir, 'appmap-findings.json'));
}
);

watches = await getWatches();
console.log('Wactches: ', watches);
await logWatches();

await repeatUntil(
async () => await restoreFile(appMapPath),
'No Diagnostics were created for Microposts_controller_can_get_microposts_as_JSON',
async () => {
watches = await getWatches();
console.log('Wactches: ', watches);
await logWatches();
waitFor(
'diagnostics to be created',
() => getDiagnosticsForAppMap(ExampleAppMap).length > 0,
Expand Down

0 comments on commit d9eff32

Please sign in to comment.