Commit 4bbb2af
committed
CLDSRV-992: Build the uploadPartCopy fixtures once per suite, not per test
Both `uploadPartCopy` describes in the PartNumber tests rebuild a large MPU
fixture in a beforeEach, although all four of their tests only issue a
GetObject. Each rebuild moves roughly 200 MB: completeMPU uploads ten 5 MB
parts one at a time with async.eachSeries, createMPUAndPutTwoParts copies that
50 MB object and then puts a 50 MB body, and the overwrite variant adds a 5 MB
part and a second 50 MB UploadPartCopy. Doing that twice per describe, once for
each read-only test, is what pushes the hook past the 40 s mocha timeout on the
s3c backend.
Move the setup to `before` and the DeleteObject cleanup to `after`. The fixture
is identical for both tests in each describe, and the enclosing describe creates
the bucket in its own `before` and drops it in `after`, so the fixture safely
outlives the individual tests. Halves the data moved by these two describes and
removes the redundant rebuild, rather than raising the timeout.
Clears the timeout half of CLDSRV-992 row F8 (run 33647777908): the "before
each" hook for "should retrieve a part that overwrote another part originally
copied from an MPU". The same row's ServiceUnavailable on "should get the body
of part 8 when ordered MPU" is a separate transient and is not addressed here.
Issue: CLDSRV-9921 parent ce53804 commit 4bbb2af
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
923 | 923 | | |
924 | 924 | | |
925 | 925 | | |
926 | | - | |
| 926 | + | |
927 | 927 | | |
928 | 928 | | |
929 | 929 | | |
| |||
946 | 946 | | |
947 | 947 | | |
948 | 948 | | |
949 | | - | |
| 949 | + | |
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
| |||
968 | 968 | | |
969 | 969 | | |
970 | 970 | | |
971 | | - | |
| 971 | + | |
972 | 972 | | |
973 | 973 | | |
974 | 974 | | |
| |||
1019 | 1019 | | |
1020 | 1020 | | |
1021 | 1021 | | |
1022 | | - | |
| 1022 | + | |
1023 | 1023 | | |
1024 | 1024 | | |
1025 | 1025 | | |
| |||
0 commit comments