-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run go vet and tests in all subpackages in CI #107
Conversation
106363c
to
2de9047
Compare
scylla_test.go
Outdated
@@ -167,6 +169,9 @@ func TestScyllaRandomConnPIcker(t *testing.T) { | |||
}) | |||
|
|||
t.Run("async access of max iterations", func(t *testing.T) { | |||
ctx, cancel := context.WithTimeout(context.Background(), time.Second) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a busy system timeout as low as this could flake. Is there a particular issue you've encountered that forced you to start addressing this? Would collecting the errors be enough to fix the vet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not just the vet, I noticed an issue and I fixed it, it's better to flake than hang infinitely. I increased the timeout to 5s which should be big enough even for busy system.
nit: the first commit name misses |
`go vet` and `go test` without any package arguments runs only on the go files in the repo root directory. It should run on all non-vendored packages.
Fixes following go vet failure: * ./scylla_test.go:180:4: call to (*T).Fatal from a non-test goroutine
2de9047
to
1b91237
Compare
good catch, thanks. Fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
go vet
andgo test
without any package arguments runs onlyon the go files in the repo root directory. It should run on all
non-vendored packages.
Fixes following go vet failure:
./scylla_test.go:180:4: call to (*T).Fatal from a non-test goroutine