tests: Include the Windows node name in the exception

There are a few tests that fail because the hostnames apparently do not
match. Logging the name would help finding the problem.
This commit is contained in:
Claudiu Belu 2022-05-04 12:50:57 -07:00
parent b81a2a7373
commit 8d98e53b78

View File

@ -65,7 +65,7 @@ const (
throw "Contents of /etc/secret/foo.txt are not as expected" throw "Contents of /etc/secret/foo.txt are not as expected"
} }
if ($env:NODE_NAME_TEST -ne $env:COMPUTERNAME) { if ($env:NODE_NAME_TEST -ne $env:COMPUTERNAME) {
throw "NODE_NAME_TEST env var does not equal COMPUTERNAME" throw "NODE_NAME_TEST env var ($NODE_NAME_TEST) does not equal COMPUTERNAME ($env:COMPUTERNAME)"
} }
Write-Output "SUCCESS"` Write-Output "SUCCESS"`
) )