Skip to content

Commit 0dea2b9

Browse files
FGaspermmcclimon
andauthored
Update internal/verifier/integration_test_suite.go
Co-authored-by: Michael McClimon <[email protected]>
1 parent 59de79c commit 0dea2b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/verifier/integration_test_suite.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func (suite *IntegrationTestSuite) SetupTest() {
9898
dbNames, err := client.ListDatabaseNames(ctx, bson.D{})
9999
suite.Require().NoError(err, "should list database names")
100100
for _, dbName := range dbNames {
101-
if strings.Index(dbName, suite.DBNameForTest()) == 0 {
101+
if strings.HasPrefix(dbName, suite.DBNameForTest()) {
102102
suite.T().Logf("Dropping database %#q because it seems to be left over from an earlier run of this test.", dbName)
103103
suite.Require().NoError(client.Database(dbName).Drop(ctx))
104104
}

0 commit comments

Comments
 (0)