Skip to content

Commit

Permalink
Catch FatalDiscoveryException.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-simons authored and Zhen Li committed Mar 12, 2020
1 parent f7293fe commit 1b6f2c3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Neo4j.Driver/Neo4j.Driver.Tests.Integration/Examples.cs
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,15 @@ public DatabaseSelectionExampleTest(ITestOutputHelper output, StandAloneIntegrat
[RequireEnterpriseEdition("4.0.0", VersionComparison.GreaterThanOrEqualTo)]
public async void TestUseAnotherDatabaseExample()
{
await DropDatabase(Driver, "examples");
try
{
await DropDatabase(Driver, "examples");
}
catch (FatalDiscoveryException ex)
{
// Its a new server instance, the database didn't exist yet
}

await CreateDatabase(Driver, "examples");

// Given
Expand Down

0 comments on commit 1b6f2c3

Please sign in to comment.