···
defer cleanupTestDB(t, db)
repo := createTestCommunityRepo(t, db)
-
consumer := jetstream.NewCommunityEventConsumer(repo)
// Create a test community first (with unique DID)
testDID := fmt.Sprintf("did:plc:test-community-%d", time.Now().UnixNano())
···
defer cleanupTestDB(t, db)
repo := createTestCommunityRepo(t, db)
-
consumer := jetstream.NewCommunityEventConsumer(repo)
// Create test community (with unique DID)
testDID := fmt.Sprintf("did:plc:test-unsub-%d", time.Now().UnixNano())
···
defer cleanupTestDB(t, db)
repo := createTestCommunityRepo(t, db)
-
consumer := jetstream.NewCommunityEventConsumer(repo)
// Create test community (with unique DID)
testDID := fmt.Sprintf("did:plc:test-subcount-%d", time.Now().UnixNano())
···
defer cleanupTestDB(t, db)
repo := createTestCommunityRepo(t, db)
+
// Skip verification in tests
+
consumer := jetstream.NewCommunityEventConsumer(repo, "did:web:coves.local", true)
// Create a test community first (with unique DID)
testDID := fmt.Sprintf("did:plc:test-community-%d", time.Now().UnixNano())
···
defer cleanupTestDB(t, db)
repo := createTestCommunityRepo(t, db)
+
// Skip verification in tests
+
consumer := jetstream.NewCommunityEventConsumer(repo, "did:web:coves.local", true)
// Create test community (with unique DID)
testDID := fmt.Sprintf("did:plc:test-unsub-%d", time.Now().UnixNano())
···
defer cleanupTestDB(t, db)
repo := createTestCommunityRepo(t, db)
+
// Skip verification in tests
+
consumer := jetstream.NewCommunityEventConsumer(repo, "did:web:coves.local", true)
// Create test community (with unique DID)
testDID := fmt.Sprintf("did:plc:test-subcount-%d", time.Now().UnixNano())