From 1f7a6fc3226f723a341a9937f2ea2d33354ffc9f Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 30 Mar 2017 20:57:09 -0700 Subject: [PATCH] upt app rate limit test in the end --- test/app-flow-test.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/app-flow-test.js b/test/app-flow-test.js index d77ec37..b09c015 100644 --- a/test/app-flow-test.js +++ b/test/app-flow-test.js @@ -71,10 +71,6 @@ describe('Application flow test', function () { cloudron.checkAddons(cloudron.appFqdn(location), owner); }); - it('can check the app ratelimit', function () { - cloudron.checkAppRateLimit(cloudron.appFqdn(location)); - }); - it('can check dnsbl', function () { cloudron.checkDnsbl(cloudron.appFqdn(location)); }); @@ -155,6 +151,12 @@ describe('Application flow test', function () { checkExposedPort(5252, done); }); + // do this last because mysql blocks the app after conn fails (ER_HOST_IS_BLOCKED: Host is blocked because of many connection errors; unblock with mysqladmin flush-hosts) + it('can check the app ratelimit', function () { + cloudron.checkAppRateLimit(cloudron.appFqdn(location)); + }); + + it('can uninstall app', function () { cloudron.uninstallApp(appId); });