Skip to content

Commit 3774acf

Browse files
author
Divjot Arora
authored
GODRIVER-1729 Fix test error for 1.15 (mongodb#496)
1 parent 981c0f8 commit 3774acf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bson/bsoncodec/default_value_decoders_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,11 @@ func TestDefaultValueDecoders(t *testing.T) {
13221322
nil,
13231323
&bsonrwtest.ValueReaderWriter{BSONType: bsontype.String, Return: string("not-valid-%%%%://")},
13241324
bsonrwtest.ReadString,
1325-
errors.New("parse not-valid-%%%%://: first path segment in URL cannot contain colon"),
1325+
&url.Error{
1326+
Op: "parse",
1327+
URL: "not-valid-%%%%://",
1328+
Err: errors.New("first path segment in URL cannot contain colon"),
1329+
},
13261330
},
13271331
{
13281332
"can set false",

0 commit comments

Comments
 (0)