added race condition testing

pull/847/head
hunterlong 4 years ago
parent bf9fd22f38
commit 4fe05e2f71

@ -250,7 +250,7 @@ jobs:
- name: Go Tests - name: Go Tests
run: | run: |
go get gotest.tools/gotestsum go get gotest.tools/gotestsum
gotestsum --no-summary=skipped --format dots -- -covermode=count -coverprofile=coverage.out -p=1 ./... gotestsum --no-summary=skipped --format testname -- -covermode=count -coverprofile=coverage.out -race -p=1 ./...
env: env:
VERSION: ${{ env.VERSION }} VERSION: ${{ env.VERSION }}
COMMIT: ${{ github.sha }} COMMIT: ${{ github.sha }}

@ -250,7 +250,7 @@ jobs:
- name: Go Tests - name: Go Tests
run: | run: |
go get gotest.tools/gotestsum go get gotest.tools/gotestsum
gotestsum --no-summary=skipped --format dots -- -covermode=count -coverprofile=coverage.out -p=1 ./... gotestsum --no-summary=skipped --format testname -- -covermode=count -coverprofile=coverage.out -race -p=1 ./...
env: env:
VERSION: ${{ env.VERSION }} VERSION: ${{ env.VERSION }}
COMMIT: ${{ github.sha }} COMMIT: ${{ github.sha }}

@ -1,5 +1,6 @@
# 0.90.70 (10-1-2020) # 0.90.70 (10-1-2020)
- Merged PR #806 - Enhance GRPC Monitoring - Merged PR #806 - Enhance GRPC Monitoring
- Merged PR #692 - When login fields are autofilled the sign in button should be enabled
- Modified multiple Vue forms to use number models for integer inputs - Modified multiple Vue forms to use number models for integer inputs
# 0.90.69 (09-18-2020) # 0.90.69 (09-18-2020)

@ -35,7 +35,7 @@ var AmazonSNS = &amazonSNS{&notifications.Notification{
Description: "Use amazonSNS to receive push notifications. Add your amazonSNS URL and App Token to receive notifications.", Description: "Use amazonSNS to receive push notifications. Add your amazonSNS URL and App Token to receive notifications.",
Author: "Hunter Long", Author: "Hunter Long",
AuthorUrl: "https://github.com/hunterlong", AuthorUrl: "https://github.com/hunterlong",
Icon: "amazon", Icon: "fab fa-amazon",
Delay: 5 * time.Second, Delay: 5 * time.Second,
Limits: 60, Limits: 60,
SuccessData: null.NewNullString(`{{.Service.Name}} is back online and was down for {{.Service.Downtime.Human}}`), SuccessData: null.NewNullString(`{{.Service.Name}} is back online and was down for {{.Service.Downtime.Human}}`),

@ -469,7 +469,7 @@ func TestServices(t *testing.T) {
item, err := Find(1) item, err := Find(1)
require.Nil(t, err) require.Nil(t, err)
amount := item.Downtime().Seconds() amount := item.Downtime().Seconds()
assert.GreaterOrEqual(t, int64(75), int64(amount)) assert.GreaterOrEqual(t, int64(amount), int64(75))
}) })
t.Run("Test Failures Since", func(t *testing.T) { t.Run("Test Failures Since", func(t *testing.T) {

Loading…
Cancel
Save