From 2bf3f9a4c1fd10f04cb014d9510d4029d5d323e1 Mon Sep 17 00:00:00 2001 From: Andre Kradolfer Date: Mon, 1 Jul 2024 13:28:58 -0600 Subject: [PATCH] more tests --- test/fast/Unit tests/nvm_download | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/fast/Unit tests/nvm_download b/test/fast/Unit tests/nvm_download index 201b59c0d9e..d05db80a495 100644 --- a/test/fast/Unit tests/nvm_download +++ b/test/fast/Unit tests/nvm_download @@ -22,6 +22,9 @@ sleep 1 # wait for httpbin to start NVM_AUTH_HEADER="Bearer test-token" nvm_download "http://127.0.0.1/bearer" > /dev/null || die "nvm_download unable to send auth header" unset NVM_AUTH_HEADER + +# nvm_download should fail when calling without auth header +nvm_download "http://127.0.0.1/bearer" > /dev/null && die "nvm_download dies with no auth header" docker stop httpbin && docker rm httpbin cleanup