Skip to content

Commit da08a37

Browse files
Fix ApiClient signature in wdio conf (#315)
1 parent da00229 commit da08a37

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

packages/databricks-vscode/src/test/e2e/wdio.conf.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,13 @@ export const config: Options.Testrunner = {
177177
framework: "mocha",
178178
//
179179
// The number of times to retry the entire specfile when it fails as a whole
180-
specFileRetries: 1,
180+
// specFileRetries: 1,
181181
//
182182
// Delay in seconds between the spec file retry attempts
183-
specFileRetriesDelay: 15,
183+
// specFileRetriesDelay: 0,
184184
//
185185
// Whether or not retried specfiles should be retried immediately or deferred to the end of the queue
186-
specFileRetriesDeferred: true,
186+
// specFileRetriesDeferred: false,
187187
//
188188
// Test reporter for stdout.
189189
// The only one supported by default is 'dot'
@@ -193,7 +193,7 @@ export const config: Options.Testrunner = {
193193
[
194194
video,
195195
{
196-
saveAllVideos: false, //only saves videos for failed tests
196+
saveAllVideos: true,
197197
videoSlowdownMultiplier: 2,
198198
},
199199
],
@@ -205,7 +205,6 @@ export const config: Options.Testrunner = {
205205
mochaOpts: {
206206
ui: "bdd",
207207
timeout: 60000,
208-
bail: true,
209208
},
210209
//
211210
// =====
@@ -429,11 +428,14 @@ token = ${process.env["DATABRICKS_TOKEN"]}`
429428
}
430429

431430
function getApiClient(host: string, token: string) {
432-
const apiClient = new ApiClient("integration-tests", "0.0.1", async () => {
433-
return {
434-
host: new URL(host),
435-
token,
436-
};
431+
const apiClient = new ApiClient({
432+
credentialProvider: async () => {
433+
return {
434+
host: new URL(host),
435+
token,
436+
};
437+
},
438+
extraUserAgent: {"integration-tests": "0.0.1"},
437439
});
438440

439441
return apiClient;

0 commit comments

Comments
 (0)