From 5052bdaf3bfb72130089372b7df44ec43c1d68df Mon Sep 17 00:00:00 2001 From: Matias Insaurralde Date: Tue, 11 Jan 2022 02:09:42 -0300 Subject: [PATCH] Fix Copy command test cases --- integration/generic_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/integration/generic_test.go b/integration/generic_test.go index 66da92e3..ba793c4a 100644 --- a/integration/generic_test.go +++ b/integration/generic_test.go @@ -306,8 +306,9 @@ func TestCopy(t *testing.T) { c.Error("wrong number", "COPY", "a") c.Do("SET", "a", "1") - c.Do("COPY", "a", "b") // returns 1 (source copied) + c.Do("COPY", "a", "b") // returns 1 - successfully copied c.Do("EXISTS", "b") - c.Do("COPY", "nonexistent", "c") // returns 0 (source not copied) + c.Do("COPY", "nonexistent", "c") // returns 1 - not successfully copied + c.Do("RENAME", "b", "c") // rename the copied key }) }