Skip to content

Commit

Permalink
Print container logs for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
rngcntr committed Mar 17, 2023
1 parent cf06c59 commit 49568a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ public Task DisposeAsync()
[Trait(nameof(DockerCli.DockerPlatform), nameof(DockerCli.DockerPlatform.Linux))]
public async Task InsertedVertexCanBeFound()
{
// temporary hack to gain access to container logs from CI output
var logs = await _janusGraphContainer.GetLogsAsync();
throw new Exception(logs.Stdout);

var g = _janusGraphContainer.GetGraphTraversalSource();
await g.AddV("testLabel").Promise(t => t.Iterate());

Expand Down
1 change: 1 addition & 0 deletions tests/Testcontainers.JanusGraph.Tests/Usings.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
global using System.Threading.Tasks;
global using DotNet.Testcontainers.Commons;
global using Xunit;
global using System;

0 comments on commit 49568a1

Please sign in to comment.