Skip to content

Commit 86d0004

Browse files
Use inline sruct literal over bson.D
1 parent 264fbf6 commit 86d0004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/integration/clam_prose_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ func TestCommandFailedEvent_Codes(t *testing.T) {
418418
},
419419
})
420420

421-
_, err := mt.Coll.InsertOne(context.Background(), bson.D{{"x", 1}})
421+
_, err := mt.Coll.InsertOne(context.Background(), struct{ X int }{X: 1})
422422
require.Error(mt, err, "expected InsertOne error, got nil")
423423

424424
failedEvent := mt.GetFailedEvent()

0 commit comments

Comments
 (0)