From dcc575f90bc232e65fb11c3b4ee3aac88515b3f0 Mon Sep 17 00:00:00 2001
From: David Cheung <davidcheung@ca.ibm.com>
Date: Thu, 11 Aug 2016 17:04:23 -0400
Subject: [PATCH] Change test cases port to be dynamic

To avoid port collision when running in Jenkins
---
 test/executor.test.js                | 2 +-
 test/fixtures/env-app/config.json    | 2 +-
 test/fixtures/simple-app/config.json | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/executor.test.js b/test/executor.test.js
index e051510..3f98556 100644
--- a/test/executor.test.js
+++ b/test/executor.test.js
@@ -38,7 +38,7 @@ describe('executor', function() {
 
   var dummyInstructions = someInstructions({
     config: {
-      port: 3000,
+      port: 0,
       host: '127.0.0.1',
       restApiRoot: '/rest-api',
       foo: { bar: 'bat' },
diff --git a/test/fixtures/env-app/config.json b/test/fixtures/env-app/config.json
index 8358c75..7b1376f 100644
--- a/test/fixtures/env-app/config.json
+++ b/test/fixtures/env-app/config.json
@@ -1,4 +1,4 @@
 {
-  "port": 3000,
+  "port": 0,
   "host": "127.0.0.1"
 }
diff --git a/test/fixtures/simple-app/config.json b/test/fixtures/simple-app/config.json
index 8358c75..7b1376f 100644
--- a/test/fixtures/simple-app/config.json
+++ b/test/fixtures/simple-app/config.json
@@ -1,4 +1,4 @@
 {
-  "port": 3000,
+  "port": 0,
   "host": "127.0.0.1"
 }