Skip to content

Agent Mesh

tests: pass the topic to NewP2PMeshAdapter in the pubsub integration test

Antonio Ojeac2ea967a682f
diff --git a/tests/integration/controlplane_pubsub_integration_test.go b/tests/integration/controlplane_pubsub_integration_test.go
index 743eb742..2af22112 100644
--- a/tests/integration/controlplane_pubsub_integration_test.go
+++ b/tests/integration/controlplane_pubsub_integration_test.go
@@ -77,8 +77,12 @@ func TestControlPlanePubSubEventIntegration(t *testing.T) {
if err != nil {
t.Fatalf("failed to create cp pubsub: %v", err)
}
+ cpTopic, err := cpPS.Join(api.GossipEvents)
+ if err != nil {
+ t.Fatalf("failed to join cp topic: %v", err)
+ }
- meshAdapter, err := controlplane.NewP2PMeshAdapter(cpHost, cpPS, store)
+ meshAdapter, err := controlplane.NewP2PMeshAdapter(cpHost, cpTopic, store)
if err != nil {
t.Fatalf("failed to create P2PMeshAdapter: %v", err)
}