Skip to content

Commit

Permalink
Ensure no server before testing server claiming
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuckal777 committed Feb 3, 2025
1 parent 96888c1 commit 6cf34fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/controller/serverclaim_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,11 @@ var _ = Describe("Server Claiming", MustPassRepeatedly(5), func() {
}
}

BeforeEach(func(ctx SpecContext) {
var server metalv1alpha1.Server
Expect(k8sClient.DeleteAllOf(ctx, &server)).To(Succeed())
})

It("binds four out of ten server for four best effort claims", func(ctx SpecContext) {
for range 10 {
makeServer(ctx)
Expand Down

0 comments on commit 6cf34fd

Please sign in to comment.