Browse Source

added race condition testing

pull/847/head
hunterlong 2 years ago
parent
commit
4fe05e2f71
  1. 2
      .github/workflows/development.yml
  2. 2
      .github/workflows/master.yml
  3. 1
      CHANGELOG.md
  4. 2
      notifiers/amazon_sns.go
  5. 2
      types/services/services_test.go

2
.github/workflows/development.yml

@ -250,7 +250,7 @@ jobs:
- name: Go Tests
run: |
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:
VERSION: ${{ env.VERSION }}
COMMIT: ${{ github.sha }}

2
.github/workflows/master.yml

@ -250,7 +250,7 @@ jobs:
- name: Go Tests
run: |
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:
VERSION: ${{ env.VERSION }}
COMMIT: ${{ github.sha }}

1
CHANGELOG.md

@ -1,5 +1,6 @@
# 0.90.70 (10-1-2020)
- 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
# 0.90.69 (09-18-2020)

2
notifiers/amazon_sns.go

@ -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.",
Author: "Hunter Long",
AuthorUrl: "https://github.com/hunterlong",
Icon: "amazon",
Icon: "fab fa-amazon",
Delay: 5 * time.Second,
Limits: 60,
SuccessData: null.NewNullString(`{{.Service.Name}} is back online and was down for {{.Service.Downtime.Human}}`),

2
types/services/services_test.go

@ -469,7 +469,7 @@ func TestServices(t *testing.T) {
item, err := Find(1)
require.Nil(t, err)
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) {

Loading…
Cancel
Save