fix: lint issues

This commit is contained in:
Kevin Franklin Kim 2024-05-27 11:18:22 +02:00
parent 337824cd85
commit d9cee831e8
No known key found for this signature in database
2 changed files with 8 additions and 4 deletions

View File

@ -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"
)
@ -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")

View File

@ -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"
)
@ -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)