Skip to content

Commit 6a9c9d7

Browse files
committed
fix: e2e test case
1 parent b954920 commit 6a9c9d7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

test/e2e/bind/happy-case_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,9 +448,10 @@ func testHappyCase(
448448
require.NotEqual(t, consumer.providerContractNamespace, "unknown")
449449

450450
// Verify consumer source metadata annotations are set on the provider-side object.
451-
consumerNS := ourInstance.GetAnnotations()[types.ConsumerNamespaceAnnotationKey]
452-
require.NotEmpty(t, consumerNS, "consumer-namespace annotation must exist on provider object")
453-
consumerUID := ourInstance.GetAnnotations()[types.ConsumerUIDAnnotationKey]
451+
annotations := ourInstance.GetAnnotations()
452+
_, hasConsumerNS := annotations[types.ConsumerNamespaceAnnotationKey]
453+
require.True(t, hasConsumerNS, "consumer-namespace annotation must exist on provider object")
454+
consumerUID := annotations[types.ConsumerUIDAnnotationKey]
454455
require.NotEmpty(t, consumerUID, "consumer-uid annotation must exist on provider object")
455456
},
456457
},

0 commit comments

Comments
 (0)