Skip to content

Commit a3cb73b

Browse files
committed
Log tensorboard error message
1 parent 2e7fbb3 commit a3cb73b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/tensorBoard/tensorBoardSession.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,11 @@ suite('TensorBoard session creation', async () => {
113113
errorMessageStub.resolves(installPromptSelection);
114114
}
115115
async function createSession() {
116+
let message = '';
116117
errorMessageStub = sandbox.stub(applicationShell, 'showErrorMessage');
118+
errorMessageStub.callsFake((msg) => {
119+
message = msg;
120+
});
117121
// Stub user selections
118122
sandbox.stub(applicationShell, 'showQuickPick').resolves({ label: TensorBoard.useCurrentWorkingDirectory() });
119123

@@ -125,7 +129,7 @@ suite('TensorBoard session creation', async () => {
125129

126130
assert.ok(session.panel?.viewColumn === ViewColumn.One, 'Panel opened in wrong group');
127131
assert.ok(session.panel?.visible, 'Webview panel not shown on session creation golden path');
128-
assert.ok(errorMessageStub.notCalled, 'Error message shown on session creation golden path');
132+
assert.ok(errorMessageStub.notCalled, `Error message shown on session creation golden path: ${message}`);
129133
return session;
130134
}
131135
suite('Core functionality', async () => {

0 commit comments

Comments
 (0)