fix(test): check errors instead of discarding with bare _ #152
Reference in New Issue
Block a user
Delete Branch "fix/bare-errors-in-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
_error discards witht.Fatalfchecks across 4 test filessqlstore_test.go— 4 fixes (GetSites, LoadAllHistory, GetStateChanges, GetActiveMaintenanceWindows)crypto_test.go— 2 fixes (Encrypt calls)server_test.go— 10 fixes (net.Listen, json.Marshal, http.NewRequest)checker_test.go— 10 fixes (net.SplitHostPort, strconv.Atoi)Not changed
monitor_test.go— discards arebool/int64returns, not errorsupdate_test.go— discards aretea.Cmdreturns, not errorsTest plan
go test ./...all greengolangci-lint run ./...0 issuesgrepconfirms zero bare_error discards remain in fixed files