Closed (fixed)
Project:
Spambot
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Oct 2024 at 15:10 UTC
Updated:
6 Oct 2025 at 15:34 UTC
Jump to comment: Most recent
PHPUnit has a random(?) fail. https://git.drupalcode.org/project/spambot/-/pipelines Likely not being handled correctly the timelimit on spambot_report_account()
catch (Exception $e) {
return FALSE;
}
$data = !empty($result) ? $result->getBody()->getContents() : '';
if (!empty($result->getStatusCode()) && $result->getStatusCode() == 200 && !empty($data) && stripos($data, 'data submitted successfully') !== FALSE) {
$success = TRUE;
}
elseif (stripos($data, 'duplicate') !== FALSE) {
// www.stopforumspam.com can return a 503 code
// with data = '<p>recent duplicate entry</p>'
// which we will treat as successful.
$success = TRUE;
}
Run PHP unit multiple times in close succession?
TBD
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #5
nickdickinsonwildeTest for duplicate message was in the wrong spot.