Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Umang01-hash committed Jul 4, 2024
1 parent 7c1479c commit 66b2bbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/using-subscriber/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"gofr.dev/pkg/gofr/testutil"
)

type mock struct {
type mockMetrics struct {
}

func (m *mock) IncrementCounter(ctx context.Context, name string, labels ...string) {
func (m *mockMetrics) IncrementCounter(ctx context.Context, name string, labels ...string) {
}

func initializeTest(t *testing.T) {
Expand All @@ -25,7 +25,7 @@ func initializeTest(t *testing.T) {
BatchBytes: kafka.DefaultBatchBytes,
BatchTimeout: kafka.DefaultBatchTimeout,
Partition: 1,
}, logging.NewMockLogger(logging.INFO), &mock{})
}, logging.NewMockLogger(logging.INFO), &mockMetrics{})

err := c.Publish(context.Background(), "order-logs", []byte(`{"data":{"orderId":"123","status":"pending"}}`))
if err != nil {
Expand Down

0 comments on commit 66b2bbe

Please sign in to comment.