testcase for migrate
@@ -128,3 +128,19 @@ def test_scan(judge_command):
"type": "string",
},
)
+
+
+def test_migrate(judge_command):
+ judge_command(
+ "MIGRATE 192.168.1.34 6379 \" \" 0 5000 KEYS key1 key2 key3",
+ {
+ "command_migrate": "MIGRATE",
+ "host": "192.168.1.34",
+ "port": "6379",
+ "key": '" "',
+ "index": "0",
+ "timeout": "5000",
+ "const_keys": "KEYS",
+ "keys": "key1 key2 key3",
+ },
+ )
