Skip to content

Commit

Permalink
🌱Minor change in test
Browse files Browse the repository at this point in the history
  • Loading branch information
yrs147 committed Aug 12, 2024
1 parent d7272c4 commit 7a8c3f1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/services/hcloud/server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,16 +359,15 @@ var _ = Describe("Test handleRateLimit", func() {
Expect(err).To(MatchError(tc.expectError))
Expect(isPresentAndFalseWithReason(tc.hm, infrav1.HetznerAPIReachableCondition, infrav1.RateLimitExceededReason)).To(BeTrue())
}
if tc.conditionSet {
Expect(isPresentAndFalseWithReason(tc.hm, infrav1.HetznerAPIReachableCondition, infrav1.RateLimitExceededReason)).To(BeTrue())
}
if tc.expectError != nil {
Expect(err).To(MatchError(tc.expectError))
}
if tc.expectError == nil {
Expect(err).To(BeNil())
}
if !tc.conditionSet {
if tc.conditionSet {
Expect(isPresentAndFalseWithReason(tc.hm, infrav1.HetznerAPIReachableCondition, infrav1.RateLimitExceededReason)).To(BeTrue())
} else {
Expect(isPresentAndFalseWithReason(tc.hm, infrav1.HetznerAPIReachableCondition, infrav1.RateLimitExceededReason)).To(BeFalse())
}
},
Expand Down

0 comments on commit 7a8c3f1

Please sign in to comment.