Skip to content

Commit 712e759

Browse files
author
Daniel Bedrood
committed
chore: Replace go-cmp with testify
1 parent 8768199 commit 712e759

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ require (
88
github.com/DataDog/datadog-go v4.8.2+incompatible
99
github.com/aws/aws-sdk-go v1.34.28
1010
github.com/getsentry/sentry-go v0.12.0
11-
github.com/google/go-cmp v0.5.7
1211
github.com/google/uuid v1.3.0
1312
github.com/grpc-ecosystem/go-grpc-middleware v1.0.0
1413
github.com/magefile/mage v1.13.0

pkg/instrumentation/database_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"path"
66
"testing"
77

8-
"github.com/google/go-cmp/cmp"
8+
"github.com/stretchr/testify/assert"
99
"gopkg.in/DataDog/dd-trace-go.v1/ddtrace/mocktracer"
1010
"gorm.io/driver/sqlite"
1111
"gorm.io/gorm"
@@ -130,9 +130,7 @@ func TestInstrumentDatabase(t *testing.T) {
130130
t.Errorf("Got span: %s, expected: %s", actualName, expectedName)
131131
}
132132

133-
if diff := cmp.Diff(expectedTags, actualTags); diff != "" {
134-
t.Error(diff)
135-
}
133+
assert.Equal(t, expectedTags, actualTags, "database tags didn't match")
136134
}
137135
}
138136

0 commit comments

Comments
 (0)