set track_quota to 2 as default

This commit is contained in:
Nicola Murino
2019-08-01 09:24:35 +02:00
parent 170e3113e1
commit 1566e43cd7
3 changed files with 9 additions and 5 deletions

View File

@@ -151,7 +151,9 @@ func TestInitialization(t *testing.T) {
func TestBasicSFTPHandling(t *testing.T) {
usePubKey := false
user, err := api.AddUser(getTestUser(usePubKey), http.StatusOK)
u := getTestUser(usePubKey)
u.QuotaSize = 6553600
user, err := api.AddUser(u, http.StatusOK)
if err != nil {
t.Errorf("unable to add user: %v", err)
}
@@ -629,7 +631,9 @@ func TestMaxSessions(t *testing.T) {
func TestQuotaFileReplace(t *testing.T) {
usePubKey := false
user, err := api.AddUser(getTestUser(usePubKey), http.StatusOK)
u := getTestUser(usePubKey)
u.QuotaFiles = 1000
user, err := api.AddUser(u, http.StatusOK)
if err != nil {
t.Errorf("unable to add user: %v", err)
}