diff --git a/go.mod b/go.mod index c5aae75..db189c2 100644 --- a/go.mod +++ b/go.mod @@ -21,7 +21,6 @@ require ( github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.17.0 github.com/prometheus/common v0.44.0 - github.com/stretchr/testify v1.9.0 github.com/tencentyun/cos-go-sdk-v5 v0.7.40 go.opentelemetry.io/otel v1.24.0 go.opentelemetry.io/otel/trace v1.24.0 @@ -85,11 +84,11 @@ require ( github.com/mozillazg/go-httpheader v0.2.1 // indirect github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect github.com/prometheus/client_model v0.4.1-0.20230718164431-9a2bf3000d16 // indirect github.com/prometheus/procfs v0.11.1 // indirect github.com/rs/xid v1.5.0 // indirect github.com/sony/gobreaker v0.5.0 // indirect + github.com/stretchr/objx v0.5.2 // indirect go.opencensus.io v0.24.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect @@ -103,7 +102,6 @@ require ( google.golang.org/genproto/googleapis/rpc v0.0.0-20240624140628-dc46fd24d27d // indirect google.golang.org/protobuf v1.34.2 // indirect gopkg.in/ini.v1 v1.67.0 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect ) require ( diff --git a/providers/filesystem/filesystem_test.go b/providers/filesystem/filesystem_test.go index f0e4a42..62b5cec 100644 --- a/providers/filesystem/filesystem_test.go +++ b/providers/filesystem/filesystem_test.go @@ -12,7 +12,6 @@ import ( "testing" "github.com/efficientgo/core/testutil" - "github.com/stretchr/testify/require" "github.com/thanos-io/objstore" ) @@ -68,11 +67,11 @@ func TestIter_CancelledContext(t *testing.T) { func TestIter(t *testing.T) { dir := t.TempDir() f, err := os.CreateTemp(dir, "test") - require.NoError(t, err) + testutil.Ok(t, err) defer f.Close() stat, err := f.Stat() - require.NoError(t, err) + testutil.Ok(t, err) cases := []struct { name string