Commits

Anonymous committed 548d370

set/get test modified to test gets 200 times, other tests disabled

Comments (0)

Files changed (1)

         self.options = options
         self.key_prefix =  key_prefix
         self.init_server()
-        self.test_set()
+        # self.test_set()
         self.test_set_get()
-        self.test_random_get()
-        self.test_set_same()
-        self.test_set_big_object()
-        self.test_set_get_big_object()
-        self.test_set_big_string()
-        self.test_set_get_big_string()
-        self.test_get()
-        self.test_get_big_object()
-        self.test_get_multi()
-        self.test_p_app_get()
+        # self.test_random_get()
+        # self.test_set_same()
+        # self.test_set_big_object()
+        # self.test_set_get_big_object()
+        # self.test_set_big_string()
+        # self.test_set_get_big_string()
+        # self.test_get()
+        # self.test_get_big_object()
+        # self.test_get_multi()
+        # self.test_p_app_get()
         #self.test_get_list()
 
     def init_server(self):
         get_ = self.mc.get
         pairs = zip(self.keys, self.values)
 
+        for key, value in pairs:
+            set_(key, value)
+
         def test():
-            for key, value in pairs:
-                set_(key, value)
-                result = get_(key)
-                assert result == value
+            for i in range(100):
+                for key, value in pairs:
+                    result = get_(key)
+                    assert result == value
+
+
         run_test(test, 'test_set_get')
 
         for key, value in pairs: