mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-10-01 01:26:10 -04:00
Update tst/Persistence/TrafficLimiterTest.php
Co-authored-by: rugk <rugk+git@posteo.de>
This commit is contained in:
parent
094c96afc6
commit
d544d5e763
@ -97,7 +97,7 @@ class TrafficLimiterTest extends PHPUnit_Framework_TestCase
|
|||||||
$this->assertTrue(TrafficLimiter::canPass(), 'request is too fast, but IPv4 in creator range');
|
$this->assertTrue(TrafficLimiter::canPass(), 'request is too fast, but IPv4 in creator range');
|
||||||
$_SERVER['REMOTE_ADDR'] = '2001:1620:2057:dead:beef::cafe:babe';
|
$_SERVER['REMOTE_ADDR'] = '2001:1620:2057:dead:beef::cafe:babe';
|
||||||
$this->assertTrue(TrafficLimiter::canPass(), 'IPv6 in creator range');
|
$this->assertTrue(TrafficLimiter::canPass(), 'IPv6 in creator range');
|
||||||
$this->assertTrue(TrafficLimiter::canPass(), 'request is to fast, but IPv6 in creator range');
|
$this->assertTrue(TrafficLimiter::canPass(), 'request is too fast, but IPv6 in creator range');
|
||||||
TrafficLimiter::setCreators('127.*,foobar');
|
TrafficLimiter::setCreators('127.*,foobar');
|
||||||
try {
|
try {
|
||||||
$this->assertFalse(TrafficLimiter::canPass(), 'expected an exception');
|
$this->assertFalse(TrafficLimiter::canPass(), 'expected an exception');
|
||||||
|
Loading…
Reference in New Issue
Block a user