Don't deactivate/activate in tls test callback as its not multi-subscriber/thread safe.
Deactivate/activate in setup class.
Increase tls recv timeout.

Change-Id: I4159760d19b532fdfca2dbc9fe3cc7d9130df73e
diff --git a/src/test/cordSubscriber/cordSubscriberTest.py b/src/test/cordSubscriber/cordSubscriberTest.py
index db6bbe1..453a505 100644
--- a/src/test/cordSubscriber/cordSubscriberTest.py
+++ b/src/test/cordSubscriber/cordSubscriberTest.py
@@ -333,7 +333,7 @@
           cls.num_ports = cls.port_map['num_ports']
           if cls.num_ports > 1:
                 cls.num_ports -= 1 ##account for the tx port
-          cls.activate_apps(cls.apps + cls.olt_apps)
+          cls.activate_apps(cls.apps + cls.olt_apps, deactivate = True)
 
       @classmethod
       def tearDownClass(cls):
@@ -346,9 +346,12 @@
           cls.install_app_igmp()
 
       @classmethod
-      def activate_apps(cls, apps):
+      def activate_apps(cls, apps, deactivate = False):
             for app in apps:
                   onos_ctrl = OnosCtrl(app)
+                  if deactivate is True:
+                        onos_ctrl.deactivate()
+                        time.sleep(2)
                   status, _ = onos_ctrl.activate()
                   assert_equal(status, True)
                   time.sleep(2)
@@ -502,10 +505,10 @@
             def tls_fail_cb():
                   log_test.info('TLS verification failed')
             if subscriber.has_service('TLS'):
-                  OnosCtrl('org.opencord.aaa').deactivate()
-                  time.sleep(2)
-                  OnosCtrl('org.opencord.aaa').activate()
-                  time.sleep(5)
+                  #OnosCtrl('org.opencord.aaa').deactivate()
+                  #time.sleep(2)
+                  #OnosCtrl('org.opencord.aaa').activate()
+                  #time.sleep(5)
                   tls = TLSAuthTest(fail_cb = tls_fail_cb, intf = subscriber.rx_intf)
                   log_test.info('Running subscriber %s tls auth test' %subscriber.name)
                   tls.runTest()
diff --git a/src/test/utils/EapolAAA.py b/src/test/utils/EapolAAA.py
index a27001a..b2877af 100644
--- a/src/test/utils/EapolAAA.py
+++ b/src/test/utils/EapolAAA.py
@@ -183,7 +183,7 @@
         assert_equal(pkt_type, EAPOL_EAPPACKET)
         return p[4:]
 
-    def eapol_scapy_recv(self, cb = None, lfilter = None, count = 1, timeout = 5):
+    def eapol_scapy_recv(self, cb = None, lfilter = None, count = 1, timeout = 10):
         def eapol_default_cb(pkt): pass
         if cb is None:
             cb = eapol_default_cb