From 238464863a039b1d36f009d4447fab42f1a855bf Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Thu, 16 Jul 2020 00:58:01 +1200 Subject: 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. --- test/fiber/test_http.rb | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 test/fiber/test_http.rb (limited to 'test') 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 -- cgit v1.2.3