diff options
| author | Kevin Greenan <kmgreen@ubuntu.(none)> | 2013-09-13 08:50:07 -0700 |
|---|---|---|
| committer | Kevin Greenan <kmgreen@ubuntu.(none)> | 2013-09-13 08:50:07 -0700 |
| commit | 8d530eba438bb3cdfaf8cd461aae6d34da261972 (patch) | |
| tree | 61c95cc0e4a88f51669ccbbd673d92de3fa8f117 /src/python/test | |
| parent | 16205c42b4734067c767632f3f10ccb7376d33b2 (diff) | |
| download | pyeclib-8d530eba438bb3cdfaf8cd461aae6d34da261972.tar.gz | |
Wired RS into the main Swift interface... Unit test is acting up...
Diffstat (limited to 'src/python/test')
| -rw-r--r-- | src/python/test/pyeclib_test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/test/pyeclib_test.py b/src/python/test/pyeclib_test.py index 2aa6f69..71a12a0 100644 --- a/src/python/test/pyeclib_test.py +++ b/src/python/test/pyeclib_test.py @@ -121,10 +121,10 @@ def test_reconstruct(num_data, num_parity, w, type, file_size, iterations): fragments = orig_fragments[:] for i in range(iterations): - num_missing = num_parity + num_missing = 1 missing_idxs = [] for j in range(num_missing): - idx = random.randint(0, num_data-1) + idx = random.randint(0, num_data+num_parity-1) missing_idxs.append(idx) fragments[idx] = '\0' * len(fragments[0]) missing_idxs.append(-1) |
