mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-03 17:23:42 -05:00
Add check OE node tests (#4273)
* Added verify OE child nodes tests for sandalone and BDC instance * msg changes * Added standalone OE node test * Resolved PR comments * Change env name * Added scripts to set env for integration test
This commit is contained in:
@@ -8,7 +8,7 @@ import * as azdata from 'azdata';
|
||||
import * as vscode from 'vscode';
|
||||
import { TestServerProfile } from './testConfig';
|
||||
|
||||
export async function connectToServer(server: TestServerProfile) {
|
||||
export async function connectToServer(server: TestServerProfile, timeout: number = 3000) {
|
||||
let connectionProfile: azdata.IConnectionProfile = {
|
||||
serverName: server.serverName,
|
||||
databaseName: server.database,
|
||||
@@ -30,9 +30,9 @@ export async function connectToServer(server: TestServerProfile) {
|
||||
|
||||
//workaround
|
||||
//wait for OE to load
|
||||
await new Promise(c => setTimeout(c, 3000));
|
||||
await new Promise(c => setTimeout(c, timeout));
|
||||
}
|
||||
|
||||
export async function ensureConnectionViewOpened() {
|
||||
await vscode.commands.executeCommand('workbench.view.dataExplorer');
|
||||
await vscode.commands.executeCommand('dataExplorer.servers.focus');
|
||||
}
|
||||
Reference in New Issue
Block a user