Skip to content

Commit

Permalink
Disable Python 3 notebook integration test due to timeout (microsoft#…
Browse files Browse the repository at this point in the history
…4726)

* Disable Python 3 notebook integration test due to timeout

* Remove unused imports
  • Loading branch information
chlafreniere authored Mar 27, 2019
1 parent 5ac6cf3 commit e1e9c08
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions extensions/integration-tests/src/notebook.test.ts
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ import assert = require('assert');
import * as azdata from 'azdata';
import * as vscode from 'vscode';
import { context } from './testContext';
import { sqlNotebookContent, writeNotebookToFile, sqlKernelMetadata, pythonKernelMetadata, pySparkNotebookContent } from './notebook.util';
import { sqlNotebookContent, writeNotebookToFile, sqlKernelMetadata } from './notebook.util';
import { getBdcServer } from './testConfig';
import { connectToServer } from './utils';

@@ -33,15 +33,15 @@ if (context.RunTest) {
console.log('Sql NB done');
});

test('Python3 notebook test', async function () {
console.log('Start Python3 NB test');
let notebook = await openNotebook(pySparkNotebookContent, pythonKernelMetadata);
let cellOutputs = notebook.document.cells[0].contents.outputs;
console.log('Got cell outputs');
let result = (<azdata.nb.IExecuteResult>cellOutputs[0]).data['text/plain'];
assert(result === '2', `Expected: 2, Acutal: '${result}'`);
console.log('Python3 NB done');
});
// test('Python3 notebook test', async function () {
// console.log('Start Python3 NB test');
// let notebook = await openNotebook(pySparkNotebookContent, pythonKernelMetadata);
// let cellOutputs = notebook.document.cells[0].contents.outputs;
// console.log('Got cell outputs');
// let result = (<azdata.nb.IExecuteResult>cellOutputs[0]).data['text/plain'];
// assert(result === '2', `Expected: 2, Acutal: '${result}'`);
// console.log('Python3 NB done');
// });

// test('PySpark3 notebook test', async function () {
// this.timeout(12000);

0 comments on commit e1e9c08

Please sign in to comment.