test: fix failed ut

pull/1638/head
Aaron Liu 2 years ago
parent 489a2bab4f
commit 6d1c44f21b

@ -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()

Loading…
Cancel
Save