Skip to content

Commit

Permalink
Fix issues after merge in Steps.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
ggnaegi committed Mar 1, 2024
1 parent df508f9 commit 21113db
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/Ocelot.AcceptanceTests/Steps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ namespace Ocelot.AcceptanceTests;
public class Steps : IDisposable
{
protected TestServer _ocelotServer;
private IHost _realServer;
protected HttpClient _ocelotClient;
private HttpResponseMessage _response;
private HttpContent _postContent;
Expand Down Expand Up @@ -1298,16 +1299,15 @@ protected virtual void Dispose(bool disposing)
return;
}

if (disposing)
{
_ocelotClient?.Dispose();
_ocelotServer?.Dispose();
_ocelotHost?.Dispose();
_realServer?.Dispose();
DeleteOcelotConfig();
}

_disposedValue = true;
if (disposing)
{
_ocelotClient?.Dispose();
_ocelotServer?.Dispose();
_ocelotHost?.Dispose();
_realServer?.Dispose();
DeleteOcelotConfig();
}

_disposedValue = true;
}
}

0 comments on commit 21113db

Please sign in to comment.