Commit 6d9d021
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 CLDSRV-992 row F4 (run 33630581671) and the timeout half of row F8
(run 33647777908, fixed for the 9.2 line separately).
Issue: CLDSRV-9921 parent 4628dd2 commit 6d9d021
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
908 | 908 | | |
909 | 909 | | |
910 | 910 | | |
911 | | - | |
| 911 | + | |
912 | 912 | | |
913 | 913 | | |
914 | 914 | | |
| |||
931 | 931 | | |
932 | 932 | | |
933 | 933 | | |
934 | | - | |
| 934 | + | |
935 | 935 | | |
936 | 936 | | |
937 | 937 | | |
| |||
955 | 955 | | |
956 | 956 | | |
957 | 957 | | |
958 | | - | |
| 958 | + | |
959 | 959 | | |
960 | 960 | | |
961 | 961 | | |
| |||
1004 | 1004 | | |
1005 | 1005 | | |
1006 | 1006 | | |
1007 | | - | |
| 1007 | + | |
1008 | 1008 | | |
1009 | 1009 | | |
1010 | 1010 | | |
| |||
0 commit comments