minor tweaks to CI test scripts (#3467)
authorAlex Lam S.L <alexlamsl@gmail.com>
Fri, 11 Oct 2019 21:36:38 +0000 (05:36 +0800)
committerGitHub <noreply@github.com>
Fri, 11 Oct 2019 21:36:38 +0000 (05:36 +0800)
test/benchmark.js
test/travis-ufuzz.js

index 63009dd..38aed13 100644 (file)
@@ -94,3 +94,6 @@ urls.forEach(function(url) {
         });
     });
 });
+setInterval(function() {
+    process.stderr.write("\0");
+}, 5 * 60 * 1000).unref();
index 9226842..22dcca9 100644 (file)
@@ -15,7 +15,7 @@ if (process.argv[2] == "run") {
     var branch = process.argv[3] || "v" + require("../package.json").version;
     var repository = encodeURIComponent(process.argv[4] || "mishoo/UglifyJS2");
     var concurrency = process.argv[5] || 1;
-    var platform = process.argv[6] || "node/latest";
+    var platform = process.argv[6] || "latest";
     (function request() {
         setTimeout(request, (period + wait) / concurrency);
         var options = url.parse("https://api.travis-ci.org/repo/" + repository + "/requests");
@@ -37,7 +37,7 @@ if (process.argv[2] == "run") {
                 branch: branch,
                 config: {
                     cache: false,
-                    env: "NODEJS_VER=" + platform,
+                    env: "NODE=" + platform,
                     script: "node test/travis-ufuzz run"
                 }
             }