浏览代码

simplify test case for quota checking after file replace

Nicola Murino 6 年之前
父节点
当前提交
34543fd861
共有 1 个文件被更改,包括 0 次插入6 次删除
  1. 0 6
      sftpd/sftpd_test.go

+ 0 - 6
sftpd/sftpd_test.go

@@ -637,12 +637,6 @@ func TestQuotaFileReplace(t *testing.T) {
 		if err != nil {
 			t.Errorf("error getting user: %v", err)
 		}
-		if expectedQuotaFiles != user.UsedQuotaFiles {
-			t.Errorf("quota files does not match, expected: %v, actual: %v", expectedQuotaFiles, user.UsedQuotaFiles)
-		}
-		if expectedQuotaSize != user.UsedQuotaSize {
-			t.Errorf("quota size does not match, expected: %v, actual: %v", expectedQuotaSize, user.UsedQuotaSize)
-		}
 		// now replace the same file, the quota must not change
 		err = sftpUploadFile(testFilePath, testFileName, testFileSize, client)
 		if err != nil {