Skip to content

Commit 32c178c

Browse files
committed
update recheck test
1 parent 4dba79b commit 32c178c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/verifier/recheck_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
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,

0 commit comments

Comments
 (0)