From 34543fd8619babc0aa803ef72ef3de9849b16f07 Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Wed, 31 Jul 2019 14:21:56 +0200 Subject: [PATCH] simplify test case for quota checking after file replace --- sftpd/sftpd_test.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sftpd/sftpd_test.go b/sftpd/sftpd_test.go index d73a1bd1..f970b543 100644 --- a/sftpd/sftpd_test.go +++ b/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 {