Skip to content

Commit 4b0d8c8

Browse files
committed
more diagnostics in exception on failing tests
1 parent 1b7f3c5 commit 4b0d8c8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Tests/Modules/SnapshotAndRestore/Snapshot/SnapshotCrudTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public SnapshotCrudTests(IndexingCluster cluster, EndpointUsage usage) : base(cl
2727
);
2828

2929
if (!create.IsValid || !create.Acknowledged)
30-
throw new Exception("Setup: failed to create snapshot repository");
30+
throw new Exception($"Setup: failed to create snapshot repository\r\n{create.DebugInformation}");
3131

3232
var createIndex = this.Client.CreateIndex(SnapshotIndexName);
3333
}

src/Tests/Reproduce/GithubIssue2173.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ namespace Tests.Reproduce
1111
{
1212
public class GithubIssue2173
1313
{
14-
[I]
15-
public void UpdateByQueryWithInvalidScript()
14+
[I] public void UpdateByQueryWithInvalidScript()
1615
{
1716
var client = TestClient.GetClient();
1817
var response = client.UpdateByQuery<Project>(typeof(Project), typeof(Project), u => u

0 commit comments

Comments
 (0)