diff options
author | Eric Wong <e@80x24.org> | 2016-08-31 02:21:04 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-08-31 02:48:17 +0000 |
commit | 2280594d422cbaa90362105afe695629115ebf8b (patch) | |
tree | 1c892b2556dc0dc79fe23260e0912de06b770040 /test/fresh.rb | |
parent | 8ef97c54d0e2aa762c75301790f4cd02fc851f0e (diff) | |
download | mogilefs-client-2280594d422cbaa90362105afe695629115ebf8b.tar.gz |
The 'reject_bad_md5' field may be of an unknown value before the monitor is ready, so prepare for it and map it to 'nil' instead of an empty string. This hopefully makes the Ruby API more Ruby-ish.
Diffstat (limited to 'test/fresh.rb')
-rw-r--r-- | test/fresh.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fresh.rb b/test/fresh.rb index 8d452c7..4c53ac2 100644 --- a/test/fresh.rb +++ b/test/fresh.rb @@ -82,7 +82,7 @@ EOF # MogileFS::Server 2.60+ shows reject_bad_md5 monitor status dev = @admin.get_devices[0] if dev.include?("reject_bad_md5") - assert [true, false].include?(dev["reject_bad_md5"]) + assert [true, false, nil].include?(dev["reject_bad_md5"]), dev.inspect end out = err = nil |