Skip to content

Commit

Permalink
reduce timeout test time
Browse files Browse the repository at this point in the history
  • Loading branch information
raggi committed Feb 4, 2010
1 parent 036bf3b commit 1fd5584
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_inactivity_timeout.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ def test_for_real
EM.run {
EM.heartbeat_interval = 0.1
EM.start_server("127.0.0.1", 12345)
EM.add_timer(0.2) {
EM.add_timer(0.1) {
$start = Time.now
c = EM.connect("127.0.0.1", 12345, TimeoutHandler)
c.comm_inactivity_timeout = 2.5
c.comm_inactivity_timeout = 0.2
}
}

assert_in_delta(2.5, (Time.now - $start), 0.3)
assert_in_delta(0.2, (Time.now - $start), 0.1)
end

end

0 comments on commit 1fd5584

Please sign in to comment.