Skip to content

Commit b87a840

Browse files
committed
fix ci
1 parent b95b135 commit b87a840

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

pkg/admin/impl.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,10 +620,11 @@ func buildBacklogQuota(limitTime *rutils.Duration, limitSize *resource.Quantity,
620620

621621
backlogQuotaType := utils.DestinationStorage
622622
if backlogQuotaTypeStr != nil {
623-
backlogQuotaType, err = utils.ParseBacklogQuotaType(*backlogQuotaTypeStr)
623+
parsedType, err := utils.ParseBacklogQuotaType(*backlogQuotaTypeStr)
624624
if err != nil {
625625
return nil, "", err
626626
}
627+
backlogQuotaType = parsedType
627628
}
628629

629630
backlogQuota := utils.BacklogQuota{

tests/operator/resources_test.go

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1774,24 +1774,15 @@ var _ = Describe("Resources", func() {
17741774
Expect(ns.Spec.Properties["team"]).Should(Equal("qa"))
17751775
})
17761776

1777-
It("should reconcile when backlog quota retention policy is unset", func() {
1777+
It("should fail when backlog quota retention policy is unset", func() {
17781778
ns := &v1alphav1.PulsarNamespace{}
17791779
tns := types.NamespacedName{Namespace: namespaceName, Name: storagePoliciesNamespaceName}
17801780
Expect(k8sClient.Get(ctx, tns, ns)).Should(Succeed())
17811781

17821782
ns.Spec.BacklogQuotaRetentionPolicy = nil
17831783

17841784
err := k8sClient.Update(ctx, ns)
1785-
Expect(err).Should(Succeed())
1786-
})
1787-
1788-
It("should be ready after removing backlog quota retention policy", func() {
1789-
Eventually(func() bool {
1790-
ns := &v1alphav1.PulsarNamespace{}
1791-
tns := types.NamespacedName{Namespace: namespaceName, Name: storagePoliciesNamespaceName}
1792-
Expect(k8sClient.Get(ctx, tns, ns)).Should(Succeed())
1793-
return v1alphav1.IsPulsarResourceReady(ns)
1794-
}, "30s", "100ms").Should(BeTrue())
1785+
Expect(err).ShouldNot(Succeed())
17951786
})
17961787

17971788
It("should allow clearing inactive topic policies and properties", func() {

0 commit comments

Comments
 (0)