add a log to better debug a randomically failing test case

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino 2023-04-15 15:08:42 +02:00
parent 466f2e88b3
commit 1ade850557
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF

View file

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