Skip to content

Commit 28c5ce5

Browse files
committed
fix
1 parent 2432f06 commit 28c5ce5

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

tests/cli_tests/zboxcli_download_dir_test.go

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ func TestDownloadDir(testSetup *testing.T) {
3333
remotepath := "/dir1"
3434

3535
allocationID := setupAllocation(t, configPath, map[string]interface{}{
36-
"size": allocSize,
37-
"tokens": 9,
36+
"size": allocSize,
3837
})
3938

4039
filename := generateFileAndUpload(t, allocationID, remotepath, filesize)
@@ -57,8 +56,7 @@ func TestDownloadDir(testSetup *testing.T) {
5756
remoteFilePaths := [2]string{"/dir1/", "/dir2/"}
5857

5958
allocationID := setupAllocation(t, configPath, map[string]interface{}{
60-
"size": allocSize,
61-
"tokens": 9,
59+
"size": allocSize,
6260
})
6361

6462
fileNameOfFirstDirectory := generateFileAndUpload(t, allocationID, remoteFilePaths[0], filesize)
@@ -102,8 +100,7 @@ func TestDownloadDir(testSetup *testing.T) {
102100
remotepath := "/dir/dir1"
103101

104102
allocationID := setupAllocation(t, configPath, map[string]interface{}{
105-
"size": allocSize,
106-
"tokens": 9,
103+
"size": allocSize,
107104
})
108105

109106
filename := generateFileAndUpload(t, allocationID, remotepath, filesize)
@@ -126,8 +123,7 @@ func TestDownloadDir(testSetup *testing.T) {
126123
remotepath := "/nested/dir/"
127124

128125
allocationID := setupAllocation(t, configPath, map[string]interface{}{
129-
"size": allocSize,
130-
"tokens": 9,
126+
"size": allocSize,
131127
})
132128

133129
filename := generateFileAndUpload(t, allocationID, remotepath, filesize)
@@ -150,8 +146,7 @@ func TestDownloadDir(testSetup *testing.T) {
150146
remotepath := "/nested/dir/"
151147

152148
allocationID := setupAllocation(t, configPath, map[string]interface{}{
153-
"size": allocSize,
154-
"tokens": 9,
149+
"size": allocSize,
155150
})
156151

157152
filename := generateFileAndUpload(t, allocationID, remotepath, filesize)
@@ -177,8 +172,7 @@ func TestDownloadDir(testSetup *testing.T) {
177172
// This test creates a separate wallet and allocates there, test nesting is required to create another wallet json file
178173
t.Run("Share Entire Folder from Another Wallet", func(t *test.SystemTest) {
179174
allocationID := setupAllocation(t, configPath, map[string]interface{}{
180-
"size": 10 * 1024,
181-
"tokens": 9,
175+
"size": 10 * 1024,
182176
})
183177
filename = generateFileAndUpload(t, allocationID, remotepath, filesize)
184178
require.NotEqual(t, "", filename)
@@ -219,8 +213,7 @@ func TestDownloadDir(testSetup *testing.T) {
219213
// This test creates a separate wallet and allocates there, test nesting is required to create another wallet json file
220214
t.Run("Share Directory from Another Wallet", func(t *test.SystemTest) {
221215
allocationID := setupAllocation(t, configPath, map[string]interface{}{
222-
"size": 10 * 1024,
223-
"tokens": 9,
216+
"size": 10 * 1024,
224217
})
225218
filename = generateFileAndUpload(t, allocationID, remotepath, filesize)
226219

@@ -262,8 +255,7 @@ func TestDownloadDir(testSetup *testing.T) {
262255
remotepath := "/dirx"
263256

264257
allocationID := setupAllocation(t, configPath, map[string]interface{}{
265-
"size": allocSize,
266-
"tokens": 9,
258+
"size": allocSize,
267259
})
268260

269261
filename := generateRandomTestFileName(t)

0 commit comments

Comments
 (0)