Update unit test route : add a random ratelimit dir instead of data (to allow to restart the test from empty)

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2545 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2016-02-23 12:41:32 +00:00
parent e682e16f56
commit 1ae18596b1

View File

@@ -325,6 +325,7 @@ class test_route extends PHPUnit_Framework_TestCase
public function test_errorRateLimit1 () public function test_errorRateLimit1 ()
{ {
$route = new route (); $route = new route ();
$route->ratelimiter->storageDir = "/tmp/ratelimit-".time();
$route->error (new \Exception ("test1", 500)); $route->error (new \Exception ("test1", 500));
$route->error (new \Exception ("test2", 500)); $route->error (new \Exception ("test2", 500));
$route->error (new \Exception ("test3", 500)); $route->error (new \Exception ("test3", 500));