Commit bf36a75a authored by Tiago's avatar Tiago
Browse files

fiber tests: replace ready set with another ready set

parent 51dbd32d
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for regression_tests/bug_1_5_1_test.rb: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ class Bug_1_5_1_Test < Minitest::Test
  end

  def test_persistent_connection_http1_should_use_buffered_requests_to_switch_context_too
    http = HTTPX.plugin(:persistent, max_retries: 10, ssl: { alpn_protocols: %w[http/1.1] })
    http = HTTPX.plugin(:persistent, ssl: { alpn_protocols: %w[http/1.1] })
    url = build_uri("/get")

    with_test_fiber_scheduler do
+1 −1
Changes for test/support/test_fiber_scheduler.rb: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ module FiberSchedulerTestHelpers
        ready = nil

        @lock.synchronize do
          ready, @ready = @ready, []
          ready, @ready = @ready, Set.new
        end

        ready.each do |fiber|