Skip to content

Commit

Permalink
Unique database names for SchemaEvolutionTest
Browse files Browse the repository at this point in the history
  • Loading branch information
prdoyle committed Feb 7, 2024
1 parent 24ab56c commit 4751e36
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ static final class Helper extends AbstractMongoDriverTest {

public Helper(DatabaseFormat preferredFormat, ManifestMode manifestMode) {
super(MongoDriverSettings.builder()
.database(SchemaEvolutionTest.class.getSimpleName())
.database(SchemaEvolutionTest.class.getSimpleName() + "_" + DB_COUNTER.incrementAndGet())
.preferredDatabaseFormat(preferredFormat)
.experimental(Experimental.builder()
.manifestMode(manifestMode)
Expand All @@ -181,5 +181,6 @@ public interface Refs {
@ReferencePath("/string") Reference<String> string();
}

private static final AtomicInteger DB_COUNTER = new AtomicInteger(0);
private static final Logger LOGGER = LoggerFactory.getLogger(SchemaEvolutionTest.class);
}

0 comments on commit 4751e36

Please sign in to comment.