fix flaky logger (#782)

* fix flaky logger

* update env related dep

* build info
This commit is contained in:
Boshi Lian
2022-02-20 14:34:10 -08:00
committed by GitHub
parent 29f9aa9df4
commit 8a39035055
3 changed files with 8 additions and 11 deletions

View File

@@ -98,15 +98,12 @@ namespace k8s.Tests.Logging
exception.ToString());
}
}
catch (AggregateException e)
catch (Exception e)
{
// ignore 'There is no currently active test.'
foreach (var inner in e.InnerExceptions)
if (e.ToString().Contains("There is no currently active test"))
{
if (inner.Message.Contains("There is no currently active test"))
{
return;
}
return;
}
throw;