Skip to content
Permalink
Browse files

fix(release-check): avoid duplicated task

  • Loading branch information...
3cp committed Jun 20, 2019
1 parent 3f22fef commit 19f654700bee91292b688e9a826bdbebd42f229d
@@ -56,7 +56,8 @@ class DotnetRunRendersPage extends Test {
onOutput(context, message) {
this.debug(message);

if (isApplicationAvailableMessage(message)) {
if (isApplicationAvailableMessage(message) && !this.isUp) {
this.isUp = true;
const url = getURL(message);

const screenshot = new TakeScreenShotOfPage(url, path.join(context.resultOutputFolder, 'screenshot-of-dotnet-run.png'));
@@ -83,7 +84,8 @@ class DotNetRunAppLaunchesWithoutJavascriptErrors extends Test {
onOutput(message) {
this.debug(message);

if (isApplicationAvailableMessage(message)) {
if (isApplicationAvailableMessage(message) && !this.isUp) {
this.isUp = true;
const url = getURL(message);

const checkJavascriptErrorsTask = new CheckForJavascriptErrors(url);
@@ -107,7 +107,8 @@ class AuRunAppLaunchesWithoutJavascriptErrors extends Test {
onOutput(message) {
this.debug(message);

if (isApplicationAvailableMessage(message)) {
if (isApplicationAvailableMessage(message) && !this.isUp) {
this.isUp = true;
const url = getURL(message);

const checkJavascriptErrorsTask = new CheckForJavascriptErrors(url);
@@ -134,7 +135,8 @@ class AuRunRendersPage extends Test {
onOutput(context, message) {
this.debug(message);

if (isApplicationAvailableMessage(message)) {
if (isApplicationAvailableMessage(message) && !this.isUp) {
this.isUp = true;
const url = getURL(message);

const screenshot = new TakeScreenShotOfPage(url, path.join(context.resultOutputFolder, 'screenshot-of-au-run.png'));
@@ -112,7 +112,8 @@ class AuRunAppLaunchesWithoutJavascriptErrors extends Test {
onOutput(message) {
this.debug(message);

if (isApplicationAvailableMessage(message)) {
if (isApplicationAvailableMessage(message) && !this.isUp) {
this.isUp = true;
const url = getURL(message);

const checkJavascriptErrorsTask = new CheckForJavascriptErrors(url);
@@ -139,7 +140,8 @@ class AuRunRendersPage extends Test {
onOutput(context, message) {
this.debug(message);

if (isApplicationAvailableMessage(message)) {
if (isApplicationAvailableMessage(message) && !this.isUp) {
this.isUp = true;
const url = getURL(message);

const screenshot = new TakeScreenShotOfPage(url, path.join(context.resultOutputFolder, 'screenshot-of-au-run.png'));

0 comments on commit 19f6547

Please sign in to comment.
You can’t perform that action at this time.