diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-07-16 00:58:01 +1200 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-07-16 13:43:56 +1200 |
commit | 238464863a039b1d36f009d4447fab42f1a855bf (patch) | |
tree | 1a57be224ed8ee0bddffeb070c121f66cb9223b9 /test | |
parent | 9f4b7fc82e45531e0057f807548a4d1c2b248186 (diff) |
Remove fiber HTTP test.
The HTTP test hits a remote website which isn't always available and is
not self-contained. Ideally we will rewrite this test with an internal
web server.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3321
Diffstat (limited to 'test')
-rw-r--r-- | test/fiber/test_http.rb | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/test/fiber/test_http.rb b/test/fiber/test_http.rb deleted file mode 100644 index 02e44d71ad..0000000000 --- a/test/fiber/test_http.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -require 'net/http' -require 'uri' -require 'openssl' - -require 'test/unit' -require_relative 'scheduler' - -class TestFiberHTTP < Test::Unit::TestCase - def test_get - Thread.new do - scheduler = Scheduler.new - Thread.current.scheduler = scheduler - - Fiber do - uri = URI("https://www.ruby-lang.org/en/") - - http = Net::HTTP.new uri.host, uri.port - http.use_ssl = true - http.verify_mode = OpenSSL::SSL::VERIFY_NONE - body = http.get(uri.path).body - - assert !body.empty? - end - end.join - end -end |