Fix random port generator 41/25141/2
authorMilos Fabian <milfabia@cisco.com>
Tue, 11 Aug 2015 07:13:47 +0000 (09:13 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 11 Aug 2015 08:15:36 +0000 (08:15 +0000)
-avoid the test get stucked sometimes

Change-Id: If07e161e519b67ed27055ae55f2c02917c6e7894
Signed-off-by: Milos Fabian <milfabia@cisco.com>
pcep/pcc-mock/src/test/java/org/opendaylight/protocol/pcep/pcc/mock/PccDispatcherImplTest.java

index ee658f8392587a01647879ab07d6c733656df5c6..ed94d3ab14ccdc8d53668b9fa6e9da19aa2f9147 100644 (file)
@@ -93,7 +93,7 @@ public class PccDispatcherImplTest {
     }
 
     private int getRandomPort() {
-        return this.random.nextInt(this.random.nextInt(60000) + 1024);
+        return this.random.nextInt(4000) + 1024;
     }
 
 }