Skip to content

Commit

Permalink
fixing test failure caused by missed instrumentation initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanj-square committed Jul 26, 2024
1 parent 81c595d commit 90d0531
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/controller/dal/fsm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package dal

import (
"context"
"github.com/TBD54566975/ftl/backend/controller/observability"
"testing"
"time"

Expand All @@ -15,6 +16,8 @@ import (
)

func TestSendFSMEvent(t *testing.T) {
_ = observability.InitControllerObservability()

Check failure on line 19 in backend/controller/dal/fsm_test.go

View workflow job for this annotation

GitHub Actions / Lint

Error return value of `observability.InitControllerObservability` is not checked (errcheck)

ctx := log.ContextWithNewDefaultLogger(context.Background())
conn := sqltest.OpenForTesting(ctx, t)
dal, err := New(ctx, conn)
Expand Down

0 comments on commit 90d0531

Please sign in to comment.