Skip to content

Commit 4e1156b

Browse files
committed
Catch all exceptions when disposing ToxiproxyManager
1 parent f1b7a3e commit 4e1156b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

projects/Test/Integration/ToxiproxyManager.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,14 @@ protected virtual void Dispose(bool disposing)
116116
{
117117
if (disposing)
118118
{
119-
_proxyClient.DeleteAsync(_proxy).GetAwaiter().GetResult();
120-
_proxyConnection.Dispose();
119+
try
120+
{
121+
_proxyClient.DeleteAsync(_proxy).GetAwaiter().GetResult();
122+
_proxyConnection.Dispose();
123+
}
124+
catch
125+
{
126+
}
121127
}
122128

123129
_disposedValue = true;

0 commit comments

Comments
 (0)