You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docker-compose.test.yaml
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -8,22 +8,22 @@ services:
8
8
# The tests might require permissions to write to coverage out files.
9
9
# If you encounter issues with permissions, you can try running the container as root.
10
10
user: root
11
-
image: cimg/go:1.22.5
11
+
image: cimg/go:1.24.3
12
12
working_dir: /etc/ocpp-go
13
13
volumes:
14
14
- .:/etc/ocpp-go:rw
15
15
command:
16
16
- /bin/bash
17
17
- -c
18
18
- |
19
-
go test -v -covermode=count -coverprofile=coverage.out ./ocppj
20
-
go test -v -covermode=count -coverprofile=ocpp16.out -coverpkg=github.com/lorenzodonini/ocpp-go/ocpp1.6/... github.com/lorenzodonini/ocpp-go/ocpp1.6_test
21
-
go test -v -covermode=count -coverprofile=ocpp201.out -coverpkg=github.com/lorenzodonini/ocpp-go/ocpp2.0.1/... github.com/lorenzodonini/ocpp-go/ocpp2.0.1_test
19
+
go test -race -v -covermode=atomic -coverprofile=coverage.out ./ocppj
20
+
go test -race -v -covermode=atomic -coverprofile=ocpp16.out -coverpkg=github.com/lorenzodonini/ocpp-go/ocpp1.6/... github.com/lorenzodonini/ocpp-go/ocpp1.6_test
21
+
go test -race -v -covermode=atomic -coverprofile=ocpp201.out -coverpkg=github.com/lorenzodonini/ocpp-go/ocpp2.0.1/... github.com/lorenzodonini/ocpp-go/ocpp2.0.1_test
22
22
sed '1d;$d' ocpp16.out >> coverage.out
23
23
sed '1d;$d' ocpp201.out >> coverage.out
24
24
25
25
integration_test:
26
-
image: cimg/go:1.22.5
26
+
image: cimg/go:1.24.3
27
27
# The tests might require permissions to write to coverage out files.
28
28
# If you encounter issues with permissions, you can try running the container as root.
29
29
user: root
@@ -38,6 +38,6 @@ services:
38
38
command:
39
39
- /bin/bash
40
40
- -c
41
-
- go test ./ws -v -covermode=count -coverprofile=integration_coverage.out
41
+
- go test -race ./ws -v -covermode=atomic -coverprofile=integration_coverage.out
0 commit comments