From 5b5e871864b89340fcd11f94a3be6bf5f1c27898 Mon Sep 17 00:00:00 2001 From: Felipe Gasper Date: Mon, 9 Dec 2024 11:34:01 -0500 Subject: [PATCH] use DBNameForTest --- internal/verifier/change_stream_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/verifier/change_stream_test.go b/internal/verifier/change_stream_test.go index c3cf5d1..6c1ded7 100644 --- a/internal/verifier/change_stream_test.go +++ b/internal/verifier/change_stream_test.go @@ -313,8 +313,10 @@ func (suite *IntegrationTestSuite) TestStartAtTimeNoChanges() { sess, err := suite.srcMongoClient.StartSession() suite.Require().NoError(err) sctx := mongo.NewSessionContext(ctx, sess) - _, err = suite.srcMongoClient.Database("testDb").Collection("testColl").InsertOne( - sctx, bson.D{}) + _, err = suite.srcMongoClient. + Database(suite.DBNameForTest()). + Collection("testColl"). + InsertOne(sctx, bson.D{}) suite.Require().NoError(err, "should insert doc") insertTs, err := util.GetClusterTimeFromSession(sess)