Moved acceptance tests into tests/acceptance
This commit is contained in:
13
tests/acceptance/fakes/dest/reject_acl.rb
Executable file
13
tests/acceptance/fakes/dest/reject_acl.rb
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
# Accept a connection, then immediately close it. This simulates an ACL rejection.
|
||||
|
||||
require 'flexnbd/fake_dest'
|
||||
include FlexNBD
|
||||
|
||||
server = FakeDest.new( *ARGV )
|
||||
server.accept.close
|
||||
|
||||
server.close
|
||||
|
||||
exit(0)
|
Reference in New Issue
Block a user