Skip to content

Commit

Permalink
Merge pull request #96 from takkanm/remove_unused_variable_warning
Browse files Browse the repository at this point in the history
remove unused variable warning
  • Loading branch information
Toshinori Minami committed Jan 4, 2017
2 parents 7444291 + eb684c8 commit 356f089
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/rx/concurrency/test_default_scheduler.rb
Expand Up @@ -14,7 +14,7 @@ def setup
def test_schedule_with_state
state = []
task = ->(_, s) { s << 1 }
d = @scheduler.schedule_with_state(state, task)
@scheduler.schedule_with_state(state, task)
sleep 0.001

assert_equal([1], state)
Expand All @@ -23,7 +23,7 @@ def test_schedule_with_state
def test_schedule_relative_with_state
state = []
task = ->(_, s) { s << 1 }
d = @scheduler.schedule_relative_with_state(state, 0.05, task)
@scheduler.schedule_relative_with_state(state, 0.05, task)
sleep 0.1

assert_equal([1], state)
Expand Down
2 changes: 0 additions & 2 deletions test/rx/concurrency/test_scheduler.rb
Expand Up @@ -99,7 +99,6 @@ def test_schedule_recursive_absolute_recursive
end

def test_schedule_recursive_relative_non_recursive
now = Time.now
ran = false
task = ->(a) { ran = true }

Expand All @@ -111,7 +110,6 @@ def test_schedule_recursive_relative_non_recursive
end

def test_schedule_recursive_relative_recursive
now = Time.now
calls = 0
task = ->(a) do
calls += 1
Expand Down

0 comments on commit 356f089

Please sign in to comment.