You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifr==nil&&r==fmt.Sprintf("Failed to start HTTPS service - %s", errMessage) {
Looks like there is a mistake inside 3 recovers inside that file.
If r is nil, it can't match sprintf result, so there is something wrong here.
I would guess that && should be changed to ||, but r == fmt.Sprintf(...) also look incorrect.
Anyway, I don't have any context, it looks like it tries to test that panic is caught and that the value returned by recover match the expected one. Code inside tests doesn't do that in a clear way. right now.
The text was updated successfully, but these errors were encountered:
tiedot/httpapi/srv_test.go
Line 131 in 7910332
Looks like there is a mistake inside 3 recovers inside that file.
If
r
isnil
, it can't matchsprintf
result, so there is something wrong here.I would guess that
&&
should be changed to||
, butr == fmt.Sprintf(...)
also look incorrect.Anyway, I don't have any context, it looks like it tries to test that panic is caught and that the value returned by
recover
match the expected one. Code inside tests doesn't do that in a clear way. right now.The text was updated successfully, but these errors were encountered: