From c2765aab30b87377c3ed0e23c32a2074ca9cdbc8 Mon Sep 17 00:00:00 2001 From: Bretton May Date: Tue, 4 Nov 2025 14:27:41 -0800 Subject: [PATCH] fix(tests): make community names unique in consumer tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes test failures caused by hardcoded community names that created duplicate handle conflicts across test runs. Changed: - update-test → update-test-{timestamp} - sub-test → sub-test-{timestamp} - delete-test → delete-test-{timestamp} All consumer tests now pass consistently. --- tests/integration/community_consumer_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration/community_consumer_test.go b/tests/integration/community_consumer_test.go index 7687f9d..7a9acd1 100644 --- a/tests/integration/community_consumer_test.go +++ b/tests/integration/community_consumer_test.go @@ -88,7 +88,7 @@ func TestCommunityConsumer_HandleCommunityProfile(t *testing.T) { t.Run("updates existing community", func(t *testing.T) { uniqueSuffix := fmt.Sprintf("%d", time.Now().UnixNano()) communityDID := generateTestDID(uniqueSuffix) - communityName := "update-test" + communityName := fmt.Sprintf("update-test-%s", uniqueSuffix) expectedHandle := fmt.Sprintf("%s.community.coves.local", communityName) // Set up mock resolver for this test DID @@ -173,7 +173,7 @@ func TestCommunityConsumer_HandleCommunityProfile(t *testing.T) { t.Run("deletes community", func(t *testing.T) { uniqueSuffix := fmt.Sprintf("%d", time.Now().UnixNano()) communityDID := generateTestDID(uniqueSuffix) - communityName := "delete-test" + communityName := fmt.Sprintf("delete-test-%s", uniqueSuffix) expectedHandle := fmt.Sprintf("%s.community.coves.local", communityName) // Set up mock resolver for this test DID @@ -238,7 +238,7 @@ func TestCommunityConsumer_HandleSubscription(t *testing.T) { // Create a community first uniqueSuffix := fmt.Sprintf("%d", time.Now().UnixNano()) communityDID := generateTestDID(uniqueSuffix) - communityName := "sub-test" + communityName := fmt.Sprintf("sub-test-%s", uniqueSuffix) expectedHandle := fmt.Sprintf("%s.community.coves.local", communityName) // Set up mock resolver for this test DID -- 2.51.2