From 1d60505629a0a16fd3c9b31c226b4d307b7a99e2 Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Wed, 19 Jun 2024 10:45:14 +0200 Subject: [PATCH] fix test case failure on macOS with bolt provider Signed-off-by: Nicola Murino --- internal/webdavd/webdavd_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/webdavd/webdavd_test.go b/internal/webdavd/webdavd_test.go index b6b2bbdb..7a6127ea 100644 --- a/internal/webdavd/webdavd_test.go +++ b/internal/webdavd/webdavd_test.go @@ -667,6 +667,8 @@ func TestBasicHandlingCryptFs(t *testing.T) { localDownloadPath := filepath.Join(homeBasePath, testDLFileName) err = downloadFile(testFileName, localDownloadPath, testFileSize, client) assert.NoError(t, err) + assert.Eventually(t, func() bool { return len(common.Connections.GetStats("")) == 0 }, + 1*time.Second, 100*time.Millisecond) user, _, err = httpdtest.GetUserByUsername(user.Username, http.StatusOK) assert.NoError(t, err) assert.Equal(t, expectedQuotaFiles, user.UsedQuotaFiles)