Skip to content

Commit

Permalink
fix(release-check): avoid duplicated e2e processes
Browse files Browse the repository at this point in the history
  • Loading branch information
3cp committed May 28, 2019
1 parent 6f48ff8 commit 615096a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build/tasks/release-checks/tests/generic/au-cypress.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class AuCypressRunsTests extends Test {
onOutput(message) {
this.debug(message);

if (isApplicationAvailableMessage(message)) {
if (isApplicationAvailableMessage(message) && !this.cypressCommand) {
this.cypressCommand = new ExecuteCommand('au', ['cypress', '--run'], (msg) => this.onCypressOutput(msg), (msg) => this.onCypressOutput(msg));
return this.cypressCommand.executeAsNodeScript();
}
Expand Down Expand Up @@ -57,7 +57,7 @@ class AuCypressRunsTestsDotNet extends Test {
onOutput(message) {
this.debug(message);

if (message.indexOf('Now listening on: http://localhost:') > -1) {
if (message.indexOf('Now listening on: http://localhost:') > -1 && !this.cypressCommand) {
this.cypressCommand = new ExecuteCommand('au', ['cypress', '--run'], (msg) => this.onCypressOutput(msg), (msg) => this.onCypressOutput(msg));
return this.cypressCommand.executeAsNodeScript();
}
Expand Down
4 changes: 2 additions & 2 deletions build/tasks/release-checks/tests/generic/au-protractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class AuProtractorRunsTests extends Test {
onOutput(message) {
this.debug(message);

if (isApplicationAvailableMessage(message)) {
if (isApplicationAvailableMessage(message) && !this.protractorCommand) {
this.protractorCommand = new ExecuteCommand('au', ['protractor'], (msg) => this.onProtractorOutput(msg));
this.protractorCommand.ignoreStdErr = true;
return this.protractorCommand.executeAsNodeScript();
Expand Down Expand Up @@ -50,7 +50,7 @@ class AuProtractorRunsTestsDotNet extends Test {
onOutput(message) {
this.debug(message);

if (message.indexOf('Now listening on: http://localhost:') > -1) {
if (message.indexOf('Now listening on: http://localhost:') > -1 && !this.protractorCommand) {
this.protractorCommand = new ExecuteCommand('au', ['protractor'], (msg) => this.onProtractorOutput(msg));
this.protractorCommand.ignoreStdErr = true;
return this.protractorCommand.executeAsNodeScript();
Expand Down

0 comments on commit 615096a

Please sign in to comment.