chore: debug tests failing in CI

This commit is contained in:
Stevan Freeborn
2026-01-04 22:16:27 -06:00
parent e41338eda2
commit 3123db088b
2 changed files with 9 additions and 1 deletions
@@ -3,6 +3,8 @@ using System.Net.Http.Json;
using GroundsForSupport.API.Tests.Integration.Infra;
[assembly: CaptureConsole]
namespace GroundsForSupport.API.Tests.Integration;
public sealed class PaymentTests(TestApi api) : IClassFixture<TestApi>
@@ -22,6 +24,8 @@ public sealed class PaymentTests(TestApi api) : IClassFixture<TestApi>
var response = await client.PostAsJsonAsync("/payments/create-intent", request, TestContext.Current.CancellationToken);
Console.WriteLine(await response.Content.ReadAsStringAsync(TestContext.Current.CancellationToken));
response.StatusCode.Should().Be(HttpStatusCode.BadRequest);
}
@@ -38,6 +42,8 @@ public sealed class PaymentTests(TestApi api) : IClassFixture<TestApi>
var response = await client.PostAsJsonAsync("/payments/create-intent", request, TestContext.Current.CancellationToken);
Console.WriteLine(await response.Content.ReadAsStringAsync(TestContext.Current.CancellationToken));
response.StatusCode.Should().Be(HttpStatusCode.BadRequest);
}
@@ -55,6 +61,8 @@ public sealed class PaymentTests(TestApi api) : IClassFixture<TestApi>
var response = await client.PostAsJsonAsync("/payments/create-intent", request, TestContext.Current.CancellationToken);
Console.WriteLine(await response.Content.ReadAsStringAsync(TestContext.Current.CancellationToken));
response.StatusCode.Should().Be(HttpStatusCode.OK);
}
}