LOC-15 in testing mode auto-room closure happens after 3 minutes
LOC-15 in testing mode auto-room closure happens after 3 minutes

--- a/server/LocalChat.py
+++ b/server/LocalChat.py
@@ -858,18 +858,19 @@
 
 if __name__ == '__main__':
     
-    # LOC-15
-    testingmode = False
-    if '--testing-mode-enable' in sys.argv:
-        testingmode = True
-    
-    
     # These will be handled properly later
     passw = ''.join(random.SystemRandom().choice(string.ascii_letters + string.digits).encode('utf-8') for _ in range(64))
     bindpoint = "https://127.0.0.1:8090" 
     purgeinterval = 600 # Wipe messages older than 10 mins
     closethresh = 3600 * 6 # Auto-close rooms after 6 hours of inactivity
-
+    
+    # LOC-15
+    testingmode = False
+    if '--testing-mode-enable' in sys.argv:
+        testingmode = True
+        purgeinterval = 30
+        closethresh = 180
+    
     # Create a global instance of the wrapper so that state can be retained
     #
     # We pass in the password we generated for the scheduler thread to use

--- a/tests/run_tests.py
+++ b/tests/run_tests.py
@@ -719,14 +719,12 @@
     # Re-join as testuser2
     n = STORAGE['testuser2']['clientInstance'].joinRoom(STORAGE['testuser2']['User'],
                                                         STORAGE['testuser2']['room'],STORAGE['testuser2']['pass'])
-    
     if not n:
         result['Notes'] = 'TestUser2 could not join'
         return [result,isFatal]
     
     # Now have the admin ban them
     msg.kickUser('testuser2',True)
-    
     
     # Check that a failure message was written
     CONN,CURSOR = opendb()