Skip to content

Commit

Permalink
remove duplicate part from unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
tigh-latte committed Feb 28, 2025
1 parent 9a576af commit 92fafe7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/models/stepdef_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,6 @@ func TestArgumentCountChecksWithContext(t *testing.T) {
assert.False(t, wasCalled)
assert.Equal(t, `func expected more arguments than given: expected 2 arguments, matched 1 from step`, err.(error).Error())
assert.True(t, errors.Is(err.(error), models.ErrUnmatchedStepArgumentNumber))

// FIXME - extra args are ignored - but should be reported at runtime
def.Args = []interface{}{"1", "2", "IGNORED-EXTRA-ARG"}
_, err = def.Run(context.Background())
assert.True(t, wasCalled)
assert.Nil(t, err)
}

func TestShouldSupportIntTypes(t *testing.T) {
Expand Down

0 comments on commit 92fafe7

Please sign in to comment.