From 1ade8505574c23ac9a8f976920d32c38bbff1f91 Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Sat, 15 Apr 2023 15:08:42 +0200 Subject: [PATCH] add a log to better debug a randomically failing test case Signed-off-by: Nicola Murino --- internal/sftpd/sftpd_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/sftpd/sftpd_test.go b/internal/sftpd/sftpd_test.go index 0250d623..c9bc4197 100644 --- a/internal/sftpd/sftpd_test.go +++ b/internal/sftpd/sftpd_test.go @@ -9550,7 +9550,9 @@ func TestGitIncludedVirtualFolders(t *testing.T) { user, _, err = httpdtest.GetUserByUsername(user.Username, http.StatusOK) assert.NoError(t, err) assert.Greater(t, user.UsedQuotaFiles, 0) - assert.Greater(t, user.UsedQuotaSize, int64(0)) + if !assert.Greater(t, user.UsedQuotaSize, int64(0)) { + printLatestLogs(20) + } folder, _, err := httpdtest.GetFolderByName(folderName, http.StatusOK) assert.NoError(t, err)