Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
joesonw committed Nov 12, 2020
1 parent a771bac commit e38cdce
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions with_annotated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
package fx_test

import (
"context"
"testing"

"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -92,8 +91,8 @@ func TestWithAnnotatedError(t *testing.T) {
),
fx.Invoke(fx.WithAnnotated("foo")("")),
)
err := app.Start(context.TODO())
err := app.Err()
require.Error(t, err)
assert.Contains(t, err.Error(), " WithAnnotated returned function must be called with a function")
assert.Contains(t, err.Error(), "WithAnnotated returned function must be called with a function")
})
}

0 comments on commit e38cdce

Please sign in to comment.