mirror of
https://github.com/foomo/sesamy-go.git
synced 2025-10-16 12:35:43 +00:00
fix: lint issues
This commit is contained in:
parent
337824cd85
commit
d9cee831e8
@ -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")
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user