From c33d53a91506e4c02a115b55c49a2d27269afe5f Mon Sep 17 00:00:00 2001 From: sighphyre Date: Fri, 8 Dec 2023 16:44:11 +0200 Subject: [PATCH] silly debug and isolate the problem test --- .github/workflows/build.yml | 6 ++---- client.go | 2 ++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3dec5d3..d93fbba 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: diff --git a/client.go b/client.go index 606819f..8f0cfb5 100644 --- a/client.go +++ b/client.go @@ -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{} }