Skip to content

Commit 0527f99

Browse files
committed
Remove static modifier as it creates static dependency of the document instance when running tests in parallel causing one to fail
1 parent 84a7ba2 commit 0527f99

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/Microsoft.OpenApi.Tests/Models/OpenApiDocumentTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
// Copyright (c) Microsoft Corporation. All rights reserved.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license.
33

44
using System;
55
using System.Collections.Generic;
66
using System.Globalization;
77
using System.IO;
8+
using System.Threading;
89
using System.Threading.Tasks;
910
using FluentAssertions;
1011
using Microsoft.OpenApi.Extensions;
@@ -598,7 +599,7 @@ public class OpenApiDocumentTests
598599

599600
public static OpenApiSchema ErrorModelSchema = AdvancedComponents.Schemas["errorModel"];
600601

601-
public static OpenApiDocument AdvancedDocument = new OpenApiDocument
602+
public OpenApiDocument AdvancedDocument = new OpenApiDocument
602603
{
603604
Info = new OpenApiInfo
604605
{

0 commit comments

Comments
 (0)