Skip to content

Commit

Permalink
silly debug and isolate the problem test
Browse files Browse the repository at this point in the history
  • Loading branch information
sighphyre committed Dec 8, 2023
1 parent cba599f commit c33d53a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@ jobs:
run: go get -t -v ./...
- name: Go vet
run: go vet ./...
- name: Run spec tests
run: go test -v ./... -tags='norace'
- name: Run all tests with race detection
- name: Run isolated bad test
timeout-minutes: 1
run: go test -race -covermode atomic -coverprofile=profile.cov -v ./... -tags='!norace'
run: go test -run TestClientWithoutListener -race -v
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ func NewClient(options ...ConfigOption) (*Client, error) {
}

if uc.options.listener == nil {
//print out a silly debug line!
fmt.Printf("No listener provided, using noop listener\n")
uc.options.listener = &NoopListener{}
}

Expand Down

0 comments on commit c33d53a

Please sign in to comment.