UT: Clean up and faster tearDown.

This commit is contained in:
Arthur Britto
2012-10-14 01:31:46 -07:00
parent 085ff2af22
commit 5fc3d98ef5
5 changed files with 115 additions and 98 deletions

View File

@@ -30,15 +30,17 @@ buster.testCase("WebSocket connection", {
"websocket connect and disconnect" :
function (done) {
var alpha = remote.remoteConfig(config, "alpha");
var alpha = remote.remoteConfig(config, "alpha", 'TRACE');
alpha.connect(function (stat) {
buster.assert(1 == stat); // OPEN
buster.assert.equals(stat, 1); // OPEN
alpha.disconnect(function (stat) {
buster.assert(3 == stat); // CLOSED
buster.assert.equals(stat, 3); // CLOSED
done();
});
}, serverDelay);
},
});
// vim:sw=2:sts=2:ts=8