summaryrefslogtreecommitdiff
path: root/test/storage/server.js
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-10-28 16:51:13 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-10-28 16:51:13 +0100
commitb9452bcbba627ec9c032b7cc6040594f74c245a0 (patch)
treea126cf3c1d7c4715134a5ba9a9a150ef3d801170 /test/storage/server.js
parentc80c823da25bcc67d89158f339be7cfb93c45f50 (diff)
downloadqtlocation-mapboxgl-b9452bcbba627ec9c032b7cc6040594f74c245a0.tar.gz
[core] refactor test server startup
Diffstat (limited to 'test/storage/server.js')
-rwxr-xr-xtest/storage/server.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/storage/server.js b/test/storage/server.js
index efc1e1d6c0..249c6a124b 100755
--- a/test/storage/server.js
+++ b/test/storage/server.js
@@ -2,6 +2,7 @@
/* jshint node: true */
'use strict';
+var fs = require('fs');
var express = require('express');
var app = express();
@@ -106,6 +107,7 @@ var server = app.listen(3000, function () {
if (process.argv[2]) {
// Allow the test to continue running.
- process.stdin.write("Go!\n");
+ fs.write(+process.argv[2], 'OK');
+ fs.close(+process.argv[2]);
}
});