Skip to content

Commit

Permalink
Reverted back the timeout for websocket test
Browse files Browse the repository at this point in the history
  • Loading branch information
botic committed Jun 16, 2016
1 parent ea59757 commit f934191
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/ringo/websocket_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ exports.testTextMessage = function() {
"isAsync": isAsync
}, true);

if (!semaphore.tryWait(20000)) {
if (!semaphore.tryWait(2000)) {
assert.fail("web socket text timed out");
}
assert.equal(received, message);
Expand All @@ -45,7 +45,7 @@ exports.testBinaryMessage = function() {
"isAsync": isAsync
}, true);

if (!semaphore.tryWait(20000)) {
if (!semaphore.tryWait(2000)) {
assert.fail("web socket binary timed out");
}
assert.isTrue(Arrays.equals(received, message));
Expand Down
2 changes: 1 addition & 1 deletion test/ringo/websocket_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var {Server} = require("ringo/httpserver");
require('ringo/logging').setConfig(getResource('./httptest_log4j.properties'));

var host = "127.0.0.1";
var port = "8282";
var port = "4400";
var path = "/websocket";
var uri = "ws://" + host + ":" + port + path;

Expand Down

0 comments on commit f934191

Please sign in to comment.