1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-16 08:13:20 +00:00

Don't parse test parameters in init()

This is to make test parameter parsing work with newer versions
of Go
This commit is contained in:
Gilbert Chen
2022-04-07 22:31:18 -04:00
parent 68b60499d7
commit a953c4ec28
5 changed files with 52 additions and 63 deletions

View File

@@ -235,12 +235,12 @@ func TestBackupManager(t *testing.T) {
dataShards := 0
parityShards := 0
if testErasureCoding {
if *testErasureCoding {
dataShards = 5
parityShards = 2
}
if testFixedChunkSize {
if *testFixedChunkSize {
if !ConfigStorage(storage, 16384, 100, 64*1024, 64*1024, 64*1024, password, nil, false, "", dataShards, parityShards) {
t.Errorf("Failed to initialize the storage")
}