Allow blocksize to be changed in Environment
This number is peppered all over the test suite, so changing @blocksize for everything is not a goer, when we really only need to change it for one test.
This commit is contained in:
@@ -22,7 +22,7 @@ module FlexNBD
|
||||
if opts[:size] == :wrong
|
||||
write_rand(@sock, 8)
|
||||
else
|
||||
@sock.write("\x00\x00\x00\x00\x00\x01\x00\x00")
|
||||
@sock.write("\x00\x00\x00\x00\x00\x00\x10\x00")
|
||||
end
|
||||
|
||||
@sock.write("\x00" * 128)
|
||||
|
Reference in New Issue
Block a user