Skip to content

Commit

Permalink
minor [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Nov 1, 2016
1 parent e7bb04f commit 94a902a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test/conf/travis-ci.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export default {
user: process.env.SAUCE_USERNAME,
key: process.env.SAUCE_ACCESS_KEY,
port: 4445,
logLevel: 'command',
waitforTimeout: 1000,
Expand All @@ -12,8 +14,6 @@ export default {
'idle-timeout': 900,
tags: ['webdriverio', process.env._ENV || 'desktop', process.env._BROWSER || process.env._DEVICENAME, process.env._PLATFORM, process.env._VERSION],
name: 'webdriverio test',
build: process.env.TRAVIS_BUILD_NUMBER,
username: process.env.SAUCE_USERNAME,
accessKey: process.env.SAUCE_ACCESS_KEY
build: process.env.TRAVIS_BUILD_NUMBER
}
}
9 changes: 6 additions & 3 deletions test/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ before(async function () {
return
}

console.log('Running job with following conf:', conf)
this.client = remote(conf)

delete conf.key
console.log('Running job with following conf:', conf)

await this.client.init()
})

Expand Down Expand Up @@ -74,9 +77,9 @@ after(async function () {
public: true
}

let res = await new Promise((r) => {
let res = await new Promise((resolve) => {
console.log(`update job status of ${sessionId}`, newJobStatus)
account.updateJob(sessionId, newJobStatus, r)
account.updateJob(sessionId, newJobStatus, resolve)
})

console.log('successfully updated job:', res)
Expand Down

0 comments on commit 94a902a

Please sign in to comment.