diff options
Diffstat (limited to 'models/repo_transfer_test.go')
-rw-r--r-- | models/repo_transfer_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/models/repo_transfer_test.go b/models/repo_transfer_test.go index 7ef29fae1f..6b6d5a8098 100644 --- a/models/repo_transfer_test.go +++ b/models/repo_transfer_test.go @@ -11,16 +11,17 @@ import ( user_model "code.gitea.io/gitea/models/user" "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func TestGetPendingTransferIDs(t *testing.T) { - assert.NoError(t, unittest.PrepareTestDatabase()) + require.NoError(t, unittest.PrepareTestDatabase()) doer := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 3}) reciepient := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 1}) pendingTransfer := unittest.AssertExistsAndLoadBean(t, &RepoTransfer{RecipientID: reciepient.ID, DoerID: doer.ID}) pendingTransferIDs, err := GetPendingTransferIDs(db.DefaultContext, reciepient.ID, doer.ID) - assert.NoError(t, err) + require.NoError(t, err) if assert.Len(t, pendingTransferIDs, 1) { assert.EqualValues(t, pendingTransfer.ID, pendingTransferIDs[0]) } |