mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Make websocket-test the first test, and give custom timeouts of 1000ms
This commit is contained in:
@@ -3,6 +3,6 @@
|
|||||||
--ui tdd
|
--ui tdd
|
||||||
--timeout 10000
|
--timeout 10000
|
||||||
--slow 600
|
--slow 600
|
||||||
test/server-test.js
|
|
||||||
test/websocket-test.js
|
test/websocket-test.js
|
||||||
|
test/server-test.js
|
||||||
test/*-test.{js,coffee}
|
test/*-test.{js,coffee}
|
||||||
@@ -9,6 +9,8 @@ suite('WebSocket connection', function() {
|
|||||||
var server;
|
var server;
|
||||||
|
|
||||||
setup(function(done) {
|
setup(function(done) {
|
||||||
|
this.timeout(1000);
|
||||||
|
|
||||||
var cfg = extend({}, config.default_server_config, config.servers.alpha);
|
var cfg = extend({}, config.default_server_config, config.servers.alpha);
|
||||||
if (cfg.no_server) {
|
if (cfg.no_server) {
|
||||||
done();
|
done();
|
||||||
@@ -20,6 +22,8 @@ suite('WebSocket connection', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
teardown(function(done) {
|
teardown(function(done) {
|
||||||
|
this.timeout(1000);
|
||||||
|
|
||||||
if (config.servers.alpha.no_server) {
|
if (config.servers.alpha.no_server) {
|
||||||
done();
|
done();
|
||||||
} else {
|
} else {
|
||||||
@@ -29,6 +33,8 @@ suite('WebSocket connection', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('WebSocket connect and disconnect', function(done) {
|
test('WebSocket connect and disconnect', function(done) {
|
||||||
|
this.timeout(1000);
|
||||||
|
|
||||||
var alpha = Remote.from_config("alpha");
|
var alpha = Remote.from_config("alpha");
|
||||||
|
|
||||||
alpha.on('connected', function () {
|
alpha.on('connected', function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user