diff --git a/test/integration/scanner/performAsAppMapsAreModified.test.ts b/test/integration/scanner/performAsAppMapsAreModified.test.ts index dc8ab948d..c9f73b7fd 100644 --- a/test/integration/scanner/performAsAppMapsAreModified.test.ts +++ b/test/integration/scanner/performAsAppMapsAreModified.test.ts @@ -17,9 +17,14 @@ import { executeWorkspaceOSCommand, } from '../util'; -async function logWatches(): Promise { - const watches = await executeWorkspaceOSCommand('ps -ef | grep -e --watch', ProjectA); - console.log('Watches: ', watches); +// async function logWatches(): Promise { +// const watches = await executeWorkspaceOSCommand('ps -ef | grep -e --watch', ProjectA); +// console.log('Watches: ', watches); +// } + +async function logIndexDir(): Promise { + const indexDir = await executeWorkspaceOSCommand(`ls -al ${ExampleAppMapIndexDir}`, ProjectA); + console.log('Index Dir: ', indexDir); } describe('Scanner', () => { @@ -47,25 +52,25 @@ describe('Scanner', () => { // `AppMap index dir should be removed`, // async () => !existsSync(ExampleAppMapIndexDir) // ); - await logWatches(); + await logIndexDir(); const appMapPath = relative(ProjectA, ExampleAppMap); await repeatUntil( async () => await restoreFile(appMapPath), `AppMap should be reindexed`, async () => { - await logWatches(); + await logIndexDir(); return existsSync(join(ExampleAppMapIndexDir, 'appmap-findings.json')); } ); - await logWatches(); + await logIndexDir(); await repeatUntil( async () => await restoreFile(appMapPath), 'No Diagnostics were created for Microposts_controller_can_get_microposts_as_JSON', async () => { - await logWatches(); + await logIndexDir(); waitFor( 'diagnostics to be created', () => getDiagnosticsForAppMap(ExampleAppMap).length > 0, @@ -80,5 +85,6 @@ describe('Scanner', () => { diagnostic.uri.fsPath, join(ProjectA, 'app/controllers/microposts_controller.rb') ); + assert(false); }); });