Revert "Pre create upload data, to not impact timing"

This reverts commit 6685d91729.
This commit is contained in:
Matt Martz 2016-12-12 14:08:20 -06:00
parent 53ef57bd5e
commit 2acba6ecd7
1 changed files with 5 additions and 3 deletions

View File

@ -1082,11 +1082,13 @@ class Speedtest(object):
for i, size in enumerate(sizes):
# We set ``0`` for ``start`` and handle setting the actual
# ``start`` in ``HTTPUploader`` to get better measurements
data = HTTPUploaderData(size, 0, self.config['length']['upload'])
data._create_data()
requests.append(
(
build_request(self.best['url'], data),
build_request(
self.best['url'],
HTTPUploaderData(size, 0,
self.config['length']['upload'])
),
size
)
)