Skip to content

Commit

Permalink
add example_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeApe committed Mar 15, 2024
1 parent 8f96e67 commit 272b8a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ jobs:
with:
go-version: '1.20'

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...

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

Expand Down
4 changes: 2 additions & 2 deletions sseread_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func TestRead(t *testing.T) {
if msg != nil {
messages = append(messages, *msg)
}
t.Log(msg.ID, msg.Event, string(msg.Data))
t.Log(msg.ID, msg.Event, string(msg.Data), msg.Retry)
})
if err != nil {
t.Fatal(err)
Expand Down Expand Up @@ -63,7 +63,7 @@ func TestReadChannel(t *testing.T) {
if msg != nil {
messages = append(messages, *msg)
}
t.Log(msg.ID, msg.Event, string(msg.Data))
t.Log(msg.ID, msg.Event, string(msg.Data), msg.Retry)
}
t.Logf("length of messages is %d", len(messages))

Expand Down

0 comments on commit 272b8a5

Please sign in to comment.