-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unnecessary args, ensure proper remote test #13555
Conversation
traceVerbose('No default remote controller, hence returning the active interpreter'); | ||
return createActiveInterpreterController(viewType, resource, this.interpreters, this.registration); | ||
// This should never happen. | ||
throw new Error('No default remote controller, hence returning the active interpreter'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests should fail instead of running successfully under the wrong conditions.
If we're running remote tests, then we MUST run against a remote kernel
Previously we'd just log a message and tests would end up running against a local kernel, and thats completely wrong.
@@ -699,7 +695,6 @@ async function selectPythonRemoteKernelConnectionForActiveInterpreter( | |||
export async function waitForKernelToGetAutoSelected( | |||
notebookEditor: NotebookEditor, | |||
expectedLanguage: string, | |||
preferRemoteKernelSpec: boolean = false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no need to specify this value, it can be derived from IS_REMOTE_NATIVE_TEST
@@ -63,5 +63,6 @@ export class JupyterServerSelectorCommand | |||
this.handleMappings.set(handle, { uri: source, server: serverUri }); | |||
// Set the uri directly | |||
await this.serverSelector.addJupyterServer({ id: this.id, handle }); | |||
this._onDidChangeHandles.fire(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was missing
Fixes #12832