fix warnings for net8 (#1481)

* fix ca2007

* xUnit1031

* fix ca2007

* fix ca2007

* remove deprecated ctor

* fix xUnit1031

* fix missing doc

* fix missing dispose

* fix ex
This commit is contained in:
Boshi Lian
2024-01-09 09:05:26 -08:00
committed by GitHub
parent f75c4aa484
commit f32cf9eab3
18 changed files with 180 additions and 206 deletions

View File

@@ -52,6 +52,9 @@ public class BasicTests
{
running = false;
server.Stop();
#if NET8_0_OR_GREATER
server.Dispose();
#endif
loop.Wait();
loop.Dispose();
}
@@ -74,7 +77,7 @@ public class BasicTests
});
var client = new Kubernetes(new KubernetesClientConfiguration { Host = server.Addr });
var pod = await client.CoreV1.ReadNamespacedPodAsync("pod", "default").ConfigureAwait(false);
var pod = await client.CoreV1.ReadNamespacedPodAsync("pod", "default").ConfigureAwait(true);
Assert.Equal("pod0", pod.Metadata.Name);
}