[前][次][番号順一覧][スレッド一覧]

ruby-changes:62255

From: Samuel <ko1@a...>
Date: Thu, 16 Jul 2020 10:44:18 +0900 (JST)
Subject: [ruby-changes:62255] 238464863a (master): Remove fiber HTTP test.

https://git.ruby-lang.org/ruby.git/commit/?id=238464863a

From 238464863a039b1d36f009d4447fab42f1a855bf Mon Sep 17 00:00:00 2001
From: Samuel Williams <samuel.williams@o...>
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.

diff --git a/test/fiber/test_http.rb b/test/fiber/test_http.rb
deleted file mode 100644
index 02e44d7..0000000
--- a/test/fiber/test_http.rb
+++ /dev/null
@@ -1,28 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/#L0
-# 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 v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]