Explorar el Código

chore: cleanup

adamdottv hace 9 meses
padre
commit
d20d0c5a95
Se han modificado 2 ficheros con 3 adiciones y 9 borrados
  1. 0 6
      go.mod
  2. 3 3
      internal/pubsub/broker_test.go

+ 0 - 6
go.mod

@@ -31,12 +31,6 @@ require (
 	github.com/spf13/cobra v1.9.1
 	github.com/spf13/viper v1.20.0
 	github.com/stretchr/testify v1.10.0
-	google.golang.org/api v0.215.0
-)
-
-require (
-	cloud.google.com/go/auth/oauth2adapt v0.2.6 // indirect
-	golang.org/x/oauth2 v0.25.0 // indirect
 )
 
 require (

+ 3 - 3
internal/pubsub/broker_test.go

@@ -51,12 +51,12 @@ func TestBrokerPublish(t *testing.T) {
 	ch := broker.Subscribe(ctx)
 
 	// Publish a message
-	broker.Publish(CreatedEvent, "test message")
+	broker.Publish("created", "test message")
 
 	// Verify message is received
 	select {
 	case event := <-ch:
-		assert.Equal(t, CreatedEvent, event.Type)
+		assert.Equal(t, "created", event.Type)
 		assert.Equal(t, "test message", event.Payload)
 	case <-time.After(100 * time.Millisecond):
 		t.Fatal("timeout waiting for message")
@@ -122,7 +122,7 @@ func TestBrokerConcurrency(t *testing.T) {
 
 	// Publish messages to all subscribers
 	for i := range numSubscribers {
-		broker.Publish(CreatedEvent, i)
+		broker.Publish("created", i)
 	}
 
 	// Wait for all subscribers to finish