mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-16 19:14:41 -07:00
Merge pull request #374 from nats-io/fix_staticcheck_reports
Fix staticcheck reported issues
This commit is contained in:
@@ -16,7 +16,7 @@ script:
|
||||
- go vet ./...
|
||||
- go test -i -race ./...
|
||||
- go test -v -race ./...
|
||||
- staticcheck ./...
|
||||
- staticcheck -ignore="github.com/nats-io/gnatsd/*/*_test.go:SA2002" ./...
|
||||
after_script:
|
||||
- if [ "$TRAVIS_GO_VERSION" = "1.7.3" ]; then ./scripts/cov.sh TRAVIS; fi
|
||||
- if [ "$TRAVIS_GO_VERSION" = "1.7.3" ] && [ "$TRAVIS_TAG" != "" ]; then ./scripts/cross_compile.sh $TRAVIS_TAG; ghr --username nats-io --token $GITHUB_TOKEN --replace $TRAVIS_TAG pkg/; fi
|
||||
|
||||
@@ -540,7 +540,7 @@ func TestHTTPHost(t *testing.T) {
|
||||
func createClientConnSubscribeAndPublish(t *testing.T) net.Conn {
|
||||
cl := createClientConn(t, "localhost", CLIENT_PORT)
|
||||
|
||||
send := sendCommand(t, cl)
|
||||
sendCommand(t, cl)
|
||||
send, expect := setupConn(t, cl)
|
||||
expectMsgs := expectMsgsCommand(t, expect)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user