diff --git a/.github/workflows/buildtest.yaml b/.github/workflows/buildtest.yaml index cc9634c..d685947 100644 --- a/.github/workflows/buildtest.yaml +++ b/.github/workflows/buildtest.yaml @@ -28,7 +28,7 @@ jobs: # if: matrix.os == 'ubuntu-latest' # run: dotnet format --severity error --verify-no-changes --exclude ./src/KubernetesClient/generated/ - name: Build - run: dotnet build --configuration Release + run: dotnet build --configuration Release -v detailed - name: Test run: dotnet test /p:CollectCoverage=true /p:ExcludeByFile=\"**/KubernetesClient/generated/**/*.cs\" /p:CoverletOutputFormat="cobertura" # - uses: 5monkeys/cobertura-action@master diff --git a/src/KubernetesClient/KubernetesClient.csproj b/src/KubernetesClient/KubernetesClient.csproj index c4af1fd..ba7c21e 100644 --- a/src/KubernetesClient/KubernetesClient.csproj +++ b/src/KubernetesClient/KubernetesClient.csproj @@ -1,4 +1,4 @@ - + The Kubernetes Project Authors @@ -32,18 +32,18 @@ - + - + - + diff --git a/tests/KubernetesClient.Tests/Logging/TestOutputLogger.cs b/tests/KubernetesClient.Tests/Logging/TestOutputLogger.cs index 544970a..f4f384a 100644 --- a/tests/KubernetesClient.Tests/Logging/TestOutputLogger.cs +++ b/tests/KubernetesClient.Tests/Logging/TestOutputLogger.cs @@ -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;