parent
4f9aaee1d9
commit
b50776dd2f
1 changed files with 14 additions and 3 deletions
|
|
@ -115,12 +115,23 @@ when enableRemoteNetworking and (defined(nimTestsEnableFlaky) or not defined(win
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# this is unexpected
|
# this is unexpected
|
||||||
|
var fatal = true
|
||||||
|
var msg = ""
|
||||||
if raised:
|
if raised:
|
||||||
echo " $# ($#) raised: $#" % [desc, $category, exception_msg]
|
msg = " $# ($#) raised: $#" % [desc, $category, exception_msg]
|
||||||
|
if "500 Internal Server Error" in exception_msg:
|
||||||
|
# refs https://github.com/nim-lang/Nim/issues/16338#issuecomment-804300278
|
||||||
|
# we got: `good (good) raised: 500 Internal Server Error`
|
||||||
|
fatal = false
|
||||||
|
msg.add " (http 500 => assuming this is not our problem)"
|
||||||
else:
|
else:
|
||||||
echo " $# ($#) did not raise" % [desc, $category]
|
msg = " $# ($#) did not raise" % [desc, $category]
|
||||||
if category in {good, dubious, bad}:
|
|
||||||
|
if category in {good, dubious, bad} and fatal:
|
||||||
|
echo "D20210322T121353: error: " & msg
|
||||||
fail()
|
fail()
|
||||||
|
else:
|
||||||
|
echo "D20210322T121353: warning: " & msg
|
||||||
|
|
||||||
|
|
||||||
suite "SSL certificate check - httpclient":
|
suite "SSL certificate check - httpclient":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue