Skip to content

Commit c51cec1

Browse files
committed
Revert outputting OpenApi.json snapshots in the XmlSourceGenerator Tests
1 parent c9805b9 commit c51cec1

8 files changed

+0
-2330
lines changed

src/OpenApi/test/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/SnapshotTestHelper.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,6 @@ void OnEntryPointExit(Exception exception)
200200
using var writer = new FormattingStreamWriter(stream, CultureInfo.InvariantCulture) { AutoFlush = true };
201201
var targetMethod = serviceType.GetMethod("GenerateAsync", [typeof(string), typeof(TextWriter)]) ?? throw new InvalidOperationException("Could not resolve GenerateAsync method.");
202202
targetMethod.Invoke(service, ["v1", writer]);
203-
204-
var openApiString = Encoding.UTF8.GetString(stream.ToArray());
205-
await Verifier.Verify(openApiString)
206-
.UseTextForParameters("openapi.json")
207-
.UseDirectory(SkipOnHelixAttribute.OnHelix()
208-
? Path.Combine(Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT"), "snapshots")
209-
: "snapshots");
210-
211203
stream.Position = 0;
212204
var (document, _) = await OpenApiDocument.LoadAsync(stream, "json");
213205
verifyFunc(document);

0 commit comments

Comments
 (0)