Tweak a timeout to prevent an intermittent test failure
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
|
|
||||||
# Open a socket, say hello, receive a write, then sleep for > 6
|
# Open a socket, say hello, receive a write, then sleep for >
|
||||||
# seconds. This should tell the source that the write has gone MIA,
|
# MS_REQUEST_LIMIT_SECS seconds. This should tell the source that the
|
||||||
# and we expect a reconnect.
|
# write has gone MIA, and we expect a reconnect.
|
||||||
|
|
||||||
require 'flexnbd/fake_dest'
|
require 'flexnbd/fake_dest'
|
||||||
include FlexNBD::FakeDest
|
include FlexNBD::FakeDest
|
||||||
@@ -15,7 +15,7 @@ read_request( client_sock1 )
|
|||||||
|
|
||||||
t = Thread.start do
|
t = Thread.start do
|
||||||
client_sock2 = accept( sock, "Timed out waiting for a reconnection",
|
client_sock2 = accept( sock, "Timed out waiting for a reconnection",
|
||||||
FlexNBD::MS_REQUEST_LIMIT_SECS + 1 )
|
FlexNBD::MS_REQUEST_LIMIT_SECS + 2 )
|
||||||
client_sock2.close
|
client_sock2.close
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user