Skip to content

Commit b752d9b

Browse files
authored
test: move a case to a cohesive location (#282)
1 parent e976de5 commit b752d9b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/redis_client/test_cluster.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,6 @@ def test_pipelined_with_many_commands
181181
results.each_with_index { |got, i| assert_equal(i.to_s, got) }
182182
end
183183

184-
def test_pubsub_without_subscription
185-
pubsub = @client.pubsub
186-
assert_nil(pubsub.next_event(0.01))
187-
pubsub.close
188-
end
189-
190184
def test_transaction_with_single_key
191185
got = @client.multi do |t|
192186
t.call('SET', 'counter', '0')
@@ -257,6 +251,12 @@ def test_transaction_without_hashtag
257251
end
258252
end
259253

254+
def test_pubsub_without_subscription
255+
pubsub = @client.pubsub
256+
assert_nil(pubsub.next_event(0.01))
257+
pubsub.close
258+
end
259+
260260
def test_pubsub_with_wrong_command
261261
pubsub = @client.pubsub
262262
assert_nil(pubsub.call('SUBWAY'))

0 commit comments

Comments
 (0)