Portal TestSecurity Unit Test Flake
bennerv opened this issue · comments
Ben Vesel commented
There appears to be a flake with one of the portal Unit tests: TestSecurity/elevated/main.js
. It fails rarely, but it can be reproduced with the following code:
while true
do
go clean -testcache
go test -timeout 30s -run ^TestSecurity$ github.com/Azure/ARO-RP/pkg/portal
echo $?
done
After a bit of time, you will see failures of the following:
--- FAIL: TestSecurity (0.30s)
--- FAIL: TestSecurity/authenticated/main.js (0.01s)
log.go:89: audit payload type cast failed
FAIL
time="2021-06-28T10:12:19-04:00" level=error msg="listener closed"
FAIL github.com/Azure/ARO-RP/pkg/portal 0.310s
FAIL