|
|
@ -485,7 +485,6 @@ func TestFileSystem_Delete(t *testing.T) {
|
|
|
|
WillReturnResult(sqlmock.NewResult(0, 1))
|
|
|
|
WillReturnResult(sqlmock.NewResult(0, 1))
|
|
|
|
mock.ExpectExec("DELETE(.+)").
|
|
|
|
mock.ExpectExec("DELETE(.+)").
|
|
|
|
WillReturnResult(sqlmock.NewResult(0, 1))
|
|
|
|
WillReturnResult(sqlmock.NewResult(0, 1))
|
|
|
|
mock.ExpectExec("UPDATE(.+)users(.+)storage(.+)").WillReturnResult(sqlmock.NewResult(1, 1))
|
|
|
|
|
|
|
|
mock.ExpectCommit()
|
|
|
|
mock.ExpectCommit()
|
|
|
|
// 删除对应分享
|
|
|
|
// 删除对应分享
|
|
|
|
mock.ExpectBegin()
|
|
|
|
mock.ExpectBegin()
|
|
|
@ -543,7 +542,6 @@ func TestFileSystem_Delete(t *testing.T) {
|
|
|
|
WillReturnResult(sqlmock.NewResult(0, 1))
|
|
|
|
WillReturnResult(sqlmock.NewResult(0, 1))
|
|
|
|
mock.ExpectExec("DELETE(.+)").
|
|
|
|
mock.ExpectExec("DELETE(.+)").
|
|
|
|
WillReturnResult(sqlmock.NewResult(0, 1))
|
|
|
|
WillReturnResult(sqlmock.NewResult(0, 1))
|
|
|
|
mock.ExpectExec("UPDATE(.+)users(.+)storage(.+)").WillReturnResult(sqlmock.NewResult(1, 1))
|
|
|
|
|
|
|
|
mock.ExpectCommit()
|
|
|
|
mock.ExpectCommit()
|
|
|
|
// 删除对应分享
|
|
|
|
// 删除对应分享
|
|
|
|
mock.ExpectBegin()
|
|
|
|
mock.ExpectBegin()
|
|
|
|