HomePhabricator

Fix phpunit failure in SpamBlacklistTest::testSpam

Description

Fix phpunit failure in SpamBlacklistTest::testSpam

This test could fail depending on the execution order of the tests.
Essentially it depended on initializing the spam whitelists and
blacklists, but if the blacklist had already been initialized
this was ignored.

This patch resets the blacklist where appropriate so state is not
retained between tests.

Bug: T70655
Change-Id: I2a5d7d6ac3794973a1c67734414d4ba98ee640e6

Details

Provenance
EBernhardsonAuthored on
matthiasmullieCommitted on Jan 13 2015, 1:31 PM
Parents
rEFLW22468300aaa4: Revert "Temporary remove UserTuple id && ip restriction"
Branches
Unknown
Tags
Unknown
References
refs/changes/35/179035/2
ChangeId
I2a5d7d6ac3794973a1c67734414d4ba98ee640e6