Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
franklinkim committed May 27, 2024
1 parent 337824c commit d9cee83
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions pkg/client/gtag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/foomo/sesamy-go/pkg/client"
"github.com/foomo/sesamy-go/pkg/encoding/gtag"
"github.com/foomo/sesamy-go/pkg/sesamy"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.uber.org/zap/zaptest"
)
Expand All @@ -20,8 +21,9 @@ func TestNewGtag(t *testing.T) {
s := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
t.Helper()
out, err := httputil.DumpRequest(r, true)
require.NoError(t, err)
t.Log(string(out))
if assert.NoError(t, err) {
t.Log(string(out))
}
}))

c := client.NewGTag(l, s.URL, "GA-XXXXXX")
Expand Down
6 changes: 4 additions & 2 deletions pkg/client/mpv2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/foomo/sesamy-go/pkg/client"
"github.com/foomo/sesamy-go/pkg/event"
"github.com/foomo/sesamy-go/pkg/event/params"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.uber.org/zap/zaptest"
)
Expand All @@ -20,8 +21,9 @@ func TestNewMPv2(t *testing.T) {
s := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
t.Helper()
out, err := httputil.DumpRequest(r, true)
require.NoError(t, err)
t.Log(string(out))
if assert.NoError(t, err) {
t.Log(string(out))
}
}))

c := client.NewMPv2(l, s.URL)
Expand Down

0 comments on commit d9cee83

Please sign in to comment.