Skip to content
Permalink
Browse files

[test api] change reconnect api in tests

  • Loading branch information
jcrugzz committed Sep 12, 2013
1 parent 6c884f2 commit bba2a975d09707025ae72fa3243b633791638365
Showing with 5 additions and 7 deletions.
  1. +5 −7 test/net/client-reconnect-test.js
@@ -49,9 +49,8 @@ vows.describe('godot/net/client-reconnect').addBatch({
godot.producer(helpers.fixtures['producer-test'])
],
reconnect: {
type: 'exponential',
maxTries: 2,
initialDelay: 100,
retries: 2,
minDelay: 100,
maxDelay: 300
}
});
@@ -66,7 +65,7 @@ vows.describe('godot/net/client-reconnect').addBatch({
assert.instanceOf(err, Error);
},
"should take appropiate amount of time": function (_, err, t) {
assert(t >= 300);
assert(t >= 200);
}
},
"with backoff and server eventually coming up": {
@@ -81,9 +80,8 @@ vows.describe('godot/net/client-reconnect').addBatch({
godot.producer(helpers.fixtures['producer-test'])
],
reconnect: {
type: 'exponential',
maxTries: 2,
initialDelay: 100,
retries: 2,
minDelay: 100,
maxDelay: 300
}
});

0 comments on commit bba2a97

Please sign in to comment.
You can’t perform that action at this time.