From 32382f9912343be0a2ca0adfd6ea6d7a96c18896 Mon Sep 17 00:00:00 2001 From: Gabe Jackson <17556281+gj@users.noreply.github.com> Date: Mon, 3 Apr 2023 18:56:35 -0400 Subject: [PATCH] Fix quickstart tests (#1693) * Fix quickstart tests * Test it * Revert "Test it" This reverts commit 3dc8c2a9487de0126607b4ccbf6b509af3a8bced. --- docs/examples/quickstart/test_quickstarts.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/examples/quickstart/test_quickstarts.rb b/docs/examples/quickstart/test_quickstarts.rb index a0fcfdda88..b2376be1c2 100644 --- a/docs/examples/quickstart/test_quickstarts.rb +++ b/docs/examples/quickstart/test_quickstarts.rb @@ -6,8 +6,8 @@ require 'bundler' -CURL_ERROR = "curl: (7) Failed to connect to localhost port 5000: Connection refused\n" -CURL_EMPTY = "curl: (52) Empty reply from server\n" +CURL_ERROR = "curl: (7) Failed to connect to localhost port 5000" +CURL_EMPTY = "curl: (52) Empty reply from server" quickstarts = { @@ -32,7 +32,7 @@ def start_server(server, repo) server = spawn server received = CURL_ERROR - while [CURL_ERROR, CURL_EMPTY].include? received + while received.include?(CURL_ERROR) || received.include?(CURL_EMPTY) sleep 0.5 received = `curl -sS localhost:5000/repo/#{repo} 2>&1` end