Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix stalling tests in ArchiveCronTest
refs #4141
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1183,7 +1183,7 @@ def _record_hits(self, hits): | |
if not config.options.dry_run: | ||
piwik.call( | ||
'/piwik.php', args={}, | ||
expected_content=PIWIK_EXPECTED_IMAGE, | ||
expected_content=None, | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
halfdan
Author
Member
|
||
headers={'Content-type': 'application/json'}, | ||
data=data, | ||
on_failure=self._on_tracking_failure | ||
|
@@ -1203,10 +1203,10 @@ def _on_tracking_failure(self, response, data): | |
return response | ||
|
||
# remove the successfully tracked hits from payload | ||
succeeded = response['succeeded'] | ||
succeeded = response['statistics']['tracked'] | ||
data['requests'] = data['requests'][succeeded:] | ||
|
||
return response['error'] | ||
return response['message'] | ||
|
||
@staticmethod | ||
def invalidate_reports(): | ||
|
If not testing for expected_content anymore, the feature / parameter can be removed from the import_logs.py (it was the only place it was used)