Skip to content

Commit

Permalink
[test api] change reconnect api in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrugzz committed Sep 12, 2013
1 parent 6c884f2 commit bba2a97
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions test/net/client-reconnect-test.js
Expand Up @@ -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
}
});
Expand All @@ -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": {
Expand All @@ -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
}
});
Expand Down

0 comments on commit bba2a97

Please sign in to comment.