diff options
Diffstat (limited to 'cmd/doctor_test.go')
-rw-r--r-- | cmd/doctor_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/doctor_test.go b/cmd/doctor_test.go index 3e1ff299c5..e6daae18b9 100644 --- a/cmd/doctor_test.go +++ b/cmd/doctor_test.go @@ -10,7 +10,7 @@ import ( "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/services/doctor" - "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" "github.com/urfave/cli/v2" ) @@ -25,9 +25,9 @@ func TestDoctorRun(t *testing.T) { app := cli.NewApp() app.Commands = []*cli.Command{cmdDoctorCheck} err := app.Run([]string{"./gitea", "check", "--run", "test-check"}) - assert.NoError(t, err) + require.NoError(t, err) err = app.Run([]string{"./gitea", "check", "--run", "no-such"}) - assert.ErrorContains(t, err, `unknown checks: "no-such"`) + require.ErrorContains(t, err, `unknown checks: "no-such"`) err = app.Run([]string{"./gitea", "check", "--run", "test-check,no-such"}) - assert.ErrorContains(t, err, `unknown checks: "no-such"`) + require.ErrorContains(t, err, `unknown checks: "no-such"`) } |