From 0576d1aada8af4447808acf215c69fe0bce0f000 Mon Sep 17 00:00:00 2001
From: Srinivasan Ramasubramanian <srini@bigswitch.com>
Date: Sun, 15 Jan 2012 08:52:00 -0800
Subject: [PATCH] Adding 1 second delay when multiple links are added in the
 TopologyImplTest.

---
 .../topology/internal/TopologyImplTest.java     | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/src/test/java/net/floodlightcontroller/topology/internal/TopologyImplTest.java b/src/test/java/net/floodlightcontroller/topology/internal/TopologyImplTest.java
index 2845b2ad8..ed15dd8c9 100644
--- a/src/test/java/net/floodlightcontroller/topology/internal/TopologyImplTest.java
+++ b/src/test/java/net/floodlightcontroller/topology/internal/TopologyImplTest.java
@@ -299,7 +299,14 @@ public class TopologyImplTest extends FloodlightTestCase {
                 { 3, 3, 0, 4, 1, 0},
         };
         createLinks(topology, switches, linkInfoArray1);
-        
+
+        try {
+            Thread.sleep(1000);
+        } catch (InterruptedException e) {
+            // TODO Auto-generated catch block
+            e.printStackTrace();
+        }
+
         int expectedClusters1[][] = {
                 {1,2,3},
                 {4},
@@ -369,6 +376,14 @@ public class TopologyImplTest extends FloodlightTestCase {
                 { 2, 4, 0, 5, 2, 0},
         };
         createLinks(topology, switches, linkInfoArray2);
+
+        try {
+            Thread.sleep(1000);
+        } catch (InterruptedException e) {
+            // TODO Auto-generated catch block
+            e.printStackTrace();
+        }
+
         int expectedClusters2[][] = {
                 {1,2,3,4,5,6},
         };
-- 
GitLab