Skip to content

Commit

Permalink
use DBNameForTest
Browse files Browse the repository at this point in the history
  • Loading branch information
FGasper committed Dec 9, 2024
1 parent 42376f5 commit 5b5e871
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/verifier/change_stream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5b5e871

Please sign in to comment.