File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 44 "context"
55 "strings"
66
7+ "github.com/10gen/migration-verifier/internal/testutil"
78 "github.com/10gen/migration-verifier/internal/types"
89 "go.mongodb.org/mongo-driver/bson"
910 "go.mongodb.org/mongo-driver/mongo/options"
@@ -48,6 +49,7 @@ func (suite *MultiMetaVersionTestSuite) TestFailedCompareThenReplace() {
4849 DB : "the" ,
4950 Coll : "namespace" ,
5051 },
52+ FullDocument : testutil .MustMarshal (bson.D {{"foo" , 1 }}),
5153 }
5254
5355 err := verifier .HandleChangeStreamEvents (ctx , []ParsedEvent {event })
@@ -63,7 +65,7 @@ func (suite *MultiMetaVersionTestSuite) TestFailedCompareThenReplace() {
6365 CollectionName : "namespace" ,
6466 DocumentID : "theDocID" ,
6567 },
66- DataSize : maxBSONObjSize ,
68+ DataSize : len ( event . FullDocument ) ,
6769 },
6870 },
6971 recheckDocs ,
You can’t perform that action at this time.
0 commit comments