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:
Patrick J Cherry
2018-02-06 09:55:32 +00:00
parent 7704f9e5c8
commit da35187af0
3 changed files with 11 additions and 5 deletions

View File

@@ -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)