Skip to content

Commit 90f2198

Browse files
committed
Upgrade chaoskit to v0.9.0 and update test commands to include chaos tag.
1 parent 90ffd06 commit 90f2198

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: go build -v ./...
2626

2727
- name: Run tests with coverage
28-
run: go test -covermode atomic -coverprofile=covprofile ./...
28+
run: go test -tags=chaos -covermode atomic -coverprofile=covprofile ./...
2929

3030
- name: Install goveralls
3131
run: go install github.com/mattn/goveralls@latest

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ help: ## Prints this message
2121

2222
.PHONY: test
2323
test: ## Run all tests
24-
@go test -cover -coverprofile=coverage.out -v ./...
24+
@go test -tags=chaos -cover -coverprofile=coverage.out -v ./...
2525
@go tool cover -html=coverage.out -o coverage.html
2626

2727
.PHONY: test.sqlite
2828
test.sqlite: ## Run all tests with SQLite store
29-
@go test -tags sqlite -cover -coverprofile=coverage.out -v ./...
29+
@go test -tags=chaos -tags sqlite -cover -coverprofile=coverage.out -v ./...
3030
@go tool cover -html=coverage.out -o coverage.html
3131

3232
.PHONY: test.short
3333
test.short: ## Run short unit tests
34-
@go test -short -cover -coverprofile=coverage.out -v ./...
34+
@go test -tags=chaos -short -cover -coverprofile=coverage.out -v ./...
3535
@go tool cover -html=coverage.out -o coverage.html

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/jackc/pgx/v5 v5.7.6
99
github.com/lib/pq v1.10.9
1010
github.com/prometheus/client_golang v1.23.2
11-
github.com/rom8726/chaoskit v0.7.1
11+
github.com/rom8726/chaoskit v0.9.0
1212
github.com/shopspring/decimal v1.4.0
1313
github.com/stretchr/testify v1.11.1
1414
github.com/testcontainers/testcontainers-go v0.40.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94
144144
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
145145
github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=
146146
github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc=
147-
github.com/rom8726/chaoskit v0.7.1 h1:l1JIAcgbzPGlI/rFcUnGsY++fJWixjYaMVVOdwbnyXY=
148-
github.com/rom8726/chaoskit v0.7.1/go.mod h1:X7jRK6lVFFnpTGOEgduOndkF/HuJEuQh7+kjzo3WgKI=
147+
github.com/rom8726/chaoskit v0.9.0 h1:8lOlKPpVfYtIISz1zYX5rtrCjggkxvUYSvVBt00wk3A=
148+
github.com/rom8726/chaoskit v0.9.0/go.mod h1:X7jRK6lVFFnpTGOEgduOndkF/HuJEuQh7+kjzo3WgKI=
149149
github.com/shirou/gopsutil/v4 v4.25.10 h1:at8lk/5T1OgtuCp+AwrDofFRjnvosn0nkN2OLQ6g8tA=
150150
github.com/shirou/gopsutil/v4 v4.25.10/go.mod h1:+kSwyC8DRUD9XXEHCAFjK+0nuArFJM0lva+StQAcskM=
151151
github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k=

0 commit comments

Comments
 (0)