Skip to content

Commit

Permalink
fix: fix functional tests (#1578)
Browse files Browse the repository at this point in the history
  • Loading branch information
minzcmu authored Apr 5, 2019
1 parent 9453a79 commit 1b926d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions features/step_definitions/git-flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const sdapi = require('../support/sdapi');
const github = require('../support/github');
const { defineSupportCode } = require('cucumber');

const TIMEOUT = 800 * 1000;
const TIMEOUT = 500 * 1000;

defineSupportCode(({ Before, Given, When, Then }) => {
Before({
Expand Down Expand Up @@ -183,7 +183,7 @@ defineSupportCode(({ Before, Given, When, Then }) => {
Then(/^any existing builds should be stopped$/, {
timeout: TIMEOUT
}, function step() {
const desiredStatus = ['ABORTED', 'SUCCESS'];
const desiredStatus = ['ABORTED', 'SUCCESS', 'FAILURE'];

return sdapi.waitForBuildStatus({
buildId: this.previousBuildId,
Expand Down
3 changes: 1 addition & 2 deletions features/support/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ function closePullRequest(token, repoOwner, repoName, prNumber) {
owner: repoOwner,
repo: repoName,
number: prNumber,
state: 'closed',
base: 'master'
state: 'closed'
});
}

Expand Down

0 comments on commit 1b926d2

Please sign in to comment.