Skip to content

Commit

Permalink
Skip test if multi-mongos connection string is null
Browse files Browse the repository at this point in the history
  • Loading branch information
jyemin committed Feb 4, 2021
1 parent b9bc98c commit 8554188
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import static com.mongodb.ClusterFixture.isSharded;
import static com.mongodb.ClusterFixture.serverVersionAtLeast;
import static org.junit.Assert.assertTrue;
import static org.junit.Assume.assumeNotNull;
import static org.junit.Assume.assumeTrue;

// See https://github.com/mongodb/specifications/blob/master/source/transactions/tests/README.rst#mongos-pinning-prose-tests
Expand All @@ -44,6 +45,8 @@ public class TransactionProseTest {
@Before
public void setUp() {
assumeTrue(canRunTests());
assumeNotNull(getMultiMongosConnectionString());

MongoClientSettings.Builder builder = MongoClientSettings.builder()
.applyConnectionString(getMultiMongosConnectionString());

Expand Down

0 comments on commit 8554188

Please sign in to comment.