-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Go modules support and race condition fixes (#60)
* generate go.mod and go.sum files * remove closeNotifier logic. Deprecated in go and causing race conditions. * fix race condition due to incomplete use of the atomic package * use locks to prevent race conditions in healthcheck handler * use correct logrustash import * go modules tidy * fix to latest version of logrus-logstash-hook * update travis to check raceconditions * travis use go modules * remove cover before_install step from travis * remove gopkg * defer cancel timeout context * fix failing test reliant on test runner resources * delete test case as it will always be flaky and reliant on server cpu resources
- Loading branch information
1 parent
f35aa7c
commit 261e476
Showing
9 changed files
with
117 additions
and
359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
language: go | ||
sudo: false | ||
go: | ||
- "1.9" | ||
- "1.10" | ||
- "1.12" | ||
|
||
env: GO111MODULE=on | ||
|
||
before_install: | ||
- diff -u <(echo -n) <(gofmt -d -s .) | ||
|
||
install: | ||
- go get github.com/golang/dep/cmd/dep | ||
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi | ||
- go mod download | ||
|
||
script: | ||
- $GOPATH/bin/dep ensure | ||
- go test ./... | ||
- go test -race ./... |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.