Skip to content

Commit c703f45

Browse files
authored
Fix Agent Token tests (#660)
1 parent 446fb92 commit c703f45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/controller/agenttoken_controller_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ var _ = Describe("AgentToken Controller", Ordered, func() {
7171
})
7272

7373
AfterEach(func() {
74-
// DELETE AGENT POOL
74+
// DELETE AGENT TOKEN RESOURCE
7575
Expect(k8sClient.Delete(ctx, instance)).Should(Succeed())
7676

7777
Eventually(func() bool {
@@ -84,7 +84,7 @@ var _ = Describe("AgentToken Controller", Ordered, func() {
8484
return true
8585
}
8686
err := tfClient.AgentPools.Delete(ctx, instance.Status.AgentPool.ID)
87-
return err == tfc.ErrResourceNotFound || err == nil
87+
return err == tfc.ErrResourceNotFound
8888
}).Should(BeTrue())
8989
})
9090

0 commit comments

Comments
 (0)