From 1ae18596b1a03798238c67cf8a606a713d7e6f36 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Tue, 23 Feb 2016 12:41:32 +0000 Subject: [PATCH] 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 --- Tests/routeTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Tests/routeTest.php b/Tests/routeTest.php index 7fed846..e434ab7 100644 --- a/Tests/routeTest.php +++ b/Tests/routeTest.php @@ -325,6 +325,7 @@ class test_route extends PHPUnit_Framework_TestCase public function test_errorRateLimit1 () { $route = new route (); + $route->ratelimiter->storageDir = "/tmp/ratelimit-".time(); $route->error (new \Exception ("test1", 500)); $route->error (new \Exception ("test2", 500)); $route->error (new \Exception ("test3", 500));