Skip to content

Commit

Permalink
Fix fragile test case
Browse files Browse the repository at this point in the history
  • Loading branch information
supercaracal committed Jun 21, 2020
1 parent 4b9c3f4 commit 797418b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/cluster_commands_on_keys_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ def test_object
assert_equal 1, redis.object('refcount', 'mylist')
expected_encoding = version < '3.2.0' ? 'ziplist' : 'quicklist'
assert_equal expected_encoding, redis.object('encoding', 'mylist')
expected_instance_type = RUBY_VERSION < '2.4.0' ? Fixnum : Integer
assert_instance_of expected_instance_type, redis.object('idletime', 'mylist')
assert(redis.object('idletime', 'mylist') >= 0)

redis.set('foo', 1000)
assert_equal 'int', redis.object('encoding', 'foo')
Expand Down

0 comments on commit 797418b

Please sign in to comment.