diff --git a/test/JanusGraph.Net.IntegrationTest/GremlinServerContainer.cs b/test/JanusGraph.Net.IntegrationTest/GremlinServerContainer.cs index f7e9fb3..dba3956 100644 --- a/test/JanusGraph.Net.IntegrationTest/GremlinServerContainer.cs +++ b/test/JanusGraph.Net.IntegrationTest/GremlinServerContainer.cs @@ -77,8 +77,15 @@ protected override async Task ContainerStarted() private async Task IsServerStartedAsync() { - using var client = new GremlinClient(new GremlinServer(Host, Port)); - return await client.SubmitWithSingleResultAsync(ServerStartedCheckTraversal); + try + { + using var client = new GremlinClient(new GremlinServer(Host, Port)); + return await client.SubmitWithSingleResultAsync(ServerStartedCheckTraversal); + } + catch (AggregateException e) when(e.InnerException != null) + { + throw e.InnerException; + } } } } \ No newline at end of file