Skip to content

Commit

Permalink
drop usage of testutils - now in internal in k6
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoykov committed Feb 6, 2025
1 parent 2ad7760 commit c8bd131
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/influxdb/output_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ import (
"testing"
"time"

"github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.k6.io/k6/lib/testutils"
"go.k6.io/k6/metrics"
"go.k6.io/k6/output"
)

func TestNew(t *testing.T) {
t.Parallel()
logger := testutils.NewLogger(t)
logger := logrus.New()

t.Run("BucketRequired", func(t *testing.T) {
t.Parallel()
Expand Down Expand Up @@ -61,7 +61,7 @@ func TestNew(t *testing.T) {
func TestExtractTagsToValues(t *testing.T) {
t.Parallel()
o, err := New(output.Params{
Logger: testutils.NewLogger(t),
Logger: logrus.New(),
JSONConfig: []byte(`{"bucket":"mybucket","tagsAsFields":["stringField","stringField2:string","boolField:bool","floatField:float","intField:int"]}`),
})
require.NoError(t, err)
Expand All @@ -86,7 +86,7 @@ func testOutputCycle(t testing.TB, handler http.HandlerFunc, body func(testing.T
defer ts.Close()

c, err := New(output.Params{
Logger: testutils.NewLogger(t),
Logger: logrus.New(),
ConfigArgument: fmt.Sprintf("%s/testbucket", ts.URL),
})
require.NoError(t, err)
Expand Down

0 comments on commit c8bd131

Please sign in to comment.