Skip to content

Commit 98cf48b

Browse files
Fix test discovery unit tests.
1 parent b8b0d58 commit 98cf48b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/testing/common/services/discovery.unit.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ suite('Unit Tests - Common Discovery', () => {
7777
};
7878

7979
when(executionFactory.createActivatedEnvironment(deepEqual(creationOptions))).thenResolve(execService.object);
80-
const executionResult = { stdout: discoveredTests };
80+
const executionResult = { stdout: JSON.stringify(discoveredTests) };
8181
execService
8282
.setup((e) => e.exec(typemoq.It.isValue([pythonFile, ...options.args]), typemoq.It.isValue(spawnOptions)))
8383
.returns(() => Promise.resolve(executionResult));
8484

8585
const result = await discovery.exec(options);
8686

8787
execService.verifyAll();
88-
assert.deepEqual(result, executionResult);
88+
assert.deepEqual(result, discoveredTests);
8989
});
9090
});
9191

0 commit comments

Comments
 (0)