From 4e8130f5dab78ec5e651727a8beb912086d8d36e Mon Sep 17 00:00:00 2001 From: Takuro Ashie Date: Fri, 19 Feb 2021 14:08:05 +0900 Subject: [PATCH] Fix a wrong timeout calculation for a out_http test Signed-off-by: Takuro Ashie --- test/plugin/test_out_http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/plugin/test_out_http.rb b/test/plugin/test_out_http.rb index 2dcdaf31ae..e245f74524 100644 --- a/test/plugin/test_out_http.rb +++ b/test/plugin/test_out_http.rb @@ -127,7 +127,7 @@ def run_http_server now = Time.now started = false until started - raise "Server not started" if (now - Time.now > 10.0) + raise "Server not started" if (Time.now - now > 10.0) begin http_client { |c| c.request_get('/') } started = true