Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Anson.G authored and Anson.G committed Oct 4, 2023
1 parent 1e7d7eb commit c9ed427
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
run: go test -v ./...

- name: Run coverage
run: go test -v ./... -race -coverprofile=coverage.txt -covermode=atomic
run: go test -v ./... -coverprofile=coverage.txt -covermode=atomic

- name: Upload Coverage report to CodeCov
uses: codecov/codecov-action@v3
Expand Down
4 changes: 2 additions & 2 deletions grpc/grpc_server/certificate_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,15 @@ func TestCertificatePubSubServer_GatewaySubscribe(t *testing.T) {
},
}
for _, tt := range tests {

t.Run(tt.name, func(t *testing.T) {

s := &CertificatePubSubServer{
cache: tt.fields.cache,
mu: tt.fields.mu,
gateways: tt.fields.gateways,
CertificateServiceServer: tt.fields.CertificateServiceServer,
}
s.mu.Lock()
defer s.mu.Unlock()

go func() {
if err := s.GatewaySubscribe(tt.args.req, tt.args.stream); (err != nil) != tt.wantErr {
Expand Down

0 comments on commit c9ed427

Please sign in to comment.