From 1c3d1991861816fcd6e431a1434f462ffc17b2b0 Mon Sep 17 00:00:00 2001
From: Shudong Zhou <shudongzhou@gmail.com>
Date: Mon, 3 Jun 2013 19:59:53 -0700
Subject: [PATCH] Fix input throttle test due to change in default behavior

---
 .../floodlightcontroller/core/internal/OFSwitchBaseTest.java    | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/test/java/net/floodlightcontroller/core/internal/OFSwitchBaseTest.java b/src/test/java/net/floodlightcontroller/core/internal/OFSwitchBaseTest.java
index 6e737bea6..004b0dc73 100644
--- a/src/test/java/net/floodlightcontroller/core/internal/OFSwitchBaseTest.java
+++ b/src/test/java/net/floodlightcontroller/core/internal/OFSwitchBaseTest.java
@@ -227,6 +227,8 @@ public class OFSwitchBaseTest {
     @Test
     public void testNoPacketInThrottle() {
         replay(floodlightProvider);
+        /* disable input throttle */
+        sw.setThresholds(Integer.MAX_VALUE, 1, 0, 0);
         for (int i = 0; i < 200; i++) {
             assertFalse(sw.inputThrottled(pi));
         }
-- 
GitLab