Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
heka1024 committed Feb 1, 2024
1 parent 9cdb531 commit 5660bf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/types/set_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class SetTest < ActiveSupport::TestCase
test "add with default" do
@set = Kredis.set "mylist", typed: :integer, default: -> () { %w[ 1 2 3 ] }
@set.add(%w[ 5 6 7 ])
assert_equal [1, 2, 3, 5, 6, 7], @set.members
assert_equal [ 1, 2, 3, 5, 6, 7 ], @set.members
end

test "add with expiration" do
Expand All @@ -134,7 +134,7 @@ class SetTest < ActiveSupport::TestCase

sleep 0.7.seconds
@set.add(%w[ 4 5 ])
assert_equal [1, 2, 3, 4, 5], @set.members
assert_equal [ 1, 2, 3, 4, 5 ], @set.members

sleep 0.5.seconds
assert_equal [], @set.members
Expand Down

0 comments on commit 5660bf1

Please sign in to comment.