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:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.