Skip to content

Commit

Permalink
fixed unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusbooyah committed Mar 5, 2024
1 parent 0386246 commit 6f9964c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Test.Kubernetes/Test_Kubernetes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ public async Task TestGetCustomObjectReturnsNull()
Duration = "1h"
};

var result = await fixture.KubernetesClient.CustomObjects.GetNamespacedCustomObjectAsync<V1Certificate>(cert.Name(), cert.Namespace());
var result = await fixture.KubernetesClient.CustomObjects.GetNamespacedCustomObjectAsync<V1Certificate>(cert.Name(), cert.Namespace(), throwIfNotFound: false);

result.Should().BeNull();

fixture.AddResource(cert);

result = await fixture.KubernetesClient.CustomObjects.GetNamespacedCustomObjectAsync<V1Certificate>(cert.Name(), cert.Namespace());
result = await fixture.KubernetesClient.CustomObjects.GetNamespacedCustomObjectAsync<V1Certificate>(cert.Name(), cert.Namespace(), throwIfNotFound: false);

result.Should().NotBeNull();
}
Expand Down

0 comments on commit 6f9964c

Please sign in to comment.