Skip to content

Commit 58d986a

Browse files
committed
fix: simplify expectation for ManagedLedgerOffloadMaxThreads in resources test
- Updated the test for ManagedLedgerOffloadMaxThreads to directly compare with an integer instead of casting to int32, improving readability and consistency in the test code.
1 parent 6d9a13c commit 58d986a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/operator/resources_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ var _ = Describe("Resources", func() {
990990
// Verify OffloadPolicies
991991
Expect(topic.Spec.OffloadPolicies).ShouldNot(BeNil())
992992
Expect(topic.Spec.OffloadPolicies.ManagedLedgerOffloadDriver).Should(Equal("aws-s3"))
993-
Expect(topic.Spec.OffloadPolicies.ManagedLedgerOffloadMaxThreads).Should(Equal(int32(5)))
993+
Expect(topic.Spec.OffloadPolicies.ManagedLedgerOffloadMaxThreads).Should(Equal(5))
994994
Expect(topic.Spec.OffloadPolicies.ManagedLedgerOffloadThresholdInBytes).Should(Equal(int64(1073741824)))
995995
})
996996

0 commit comments

Comments
 (0)