Skip to content

Commit

Permalink
update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
qingyang-hu committed Nov 19, 2024
1 parent 1ae0377 commit 7c96dee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bson/decoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,8 @@ func TestDecoderConfiguration(t *testing.T) {

var got objectIDTest
err := dec.Decode(&got)
assert.EqualError(t, err, "error decoding key id: decoding an object ID to a non-hexadecimal string representation is not supported")
const want = "error decoding key id: decoding an object ID into a plain string is not supported (set Decoder.ObjectIDAsHexString to enable decoding as a hexadecimal representation)"
assert.EqualError(t, err, want)
})
t.Run("DefaultDocumentM top-level", func(t *testing.T) {
t.Parallel()
Expand Down

0 comments on commit 7c96dee

Please sign in to comment.