mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Fix: failed test due to modifications
This commit is contained in:
@@ -63,14 +63,6 @@ func TestDownload_AfterFind(t *testing.T) {
|
||||
asserts.Equal("", download.StatusInfo.Gid)
|
||||
}
|
||||
|
||||
// 关联任务
|
||||
{
|
||||
mock.ExpectQuery("SELECT(.+)").WillReturnRows(sqlmock.NewRows([]string{"id", "error"}).AddRow(1, "error"))
|
||||
download := Download{TaskID: 1}
|
||||
download.BeforeSave()
|
||||
asserts.NoError(mock.ExpectationsWereMet())
|
||||
asserts.Equal("error", download.Task.Error)
|
||||
}
|
||||
}
|
||||
|
||||
func TestDownload_Save(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user