aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2022-08-26 16:59:34 -0300
committerHisham Muhammad <hisham@gobolinux.org>2022-08-26 17:00:57 -0300
commit731d74c498e458e13225a54d308925a470219b81 (patch)
tree45ee40e77ad91f1488b860c06b26cba233c9518c
parent599ecc482dc38678b8a478d2c21886ffb8facc41 (diff)
downloadluarocks-731d74c498e458e13225a54d308925a470219b81.tar.gz
luarocks-731d74c498e458e13225a54d308925a470219b81.tar.bz2
luarocks-731d74c498e458e13225a54d308925a470219b81.zip
tests: run quiet curl in mock API calls
-rw-r--r--spec/util/test_env.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/util/test_env.lua b/spec/util/test_env.lua
index 44021147..8705a695 100644
--- a/spec/util/test_env.lua
+++ b/spec/util/test_env.lua
@@ -920,7 +920,7 @@ local function mock_api_call(path)
920 if test_env.TEST_TARGET_OS == "windows" then 920 if test_env.TEST_TARGET_OS == "windows" then
921 return test_env.execute(Q(test_env.testing_paths.win_tools .. "/wget") .. " --quiet --timeout=5 --tries=1 localhost:8080" .. path) 921 return test_env.execute(Q(test_env.testing_paths.win_tools .. "/wget") .. " --quiet --timeout=5 --tries=1 localhost:8080" .. path)
922 else 922 else
923 return test_env.execute("curl localhost:8080" .. path) 923 return test_env.execute("curl -s localhost:8080" .. path)
924 end 924 end
925end 925end
926 926