Skip to content

Commit d1498f4

Browse files
committed
fix build
1 parent e2e4d78 commit d1498f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bson/bson_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919
"go.mongodb.org/mongo-driver/bson/bsoncodec"
2020
"go.mongodb.org/mongo-driver/bson/bsonoptions"
2121
"go.mongodb.org/mongo-driver/bson/bsontype"
22+
"go.mongodb.org/mongo-driver/bson/primitive"
2223
"go.mongodb.org/mongo-driver/internal/assert"
2324
"go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
2425
)
@@ -233,7 +234,7 @@ func TestExtJSONEscapeKey(t *testing.T) {
233234
},
234235
{
235236
Key: "regex",
236-
Value: Regex{Pattern: "ab\\\\\\\"ab", Options: "\""},
237+
Value: primitive.Regex{Pattern: "ab\\\\\\\"ab", Options: "\""},
237238
},
238239
}
239240
b, err := MarshalExtJSON(&doc, false, false)

0 commit comments

Comments
 (0)