Skip to content

Commit

Permalink
Fix Copy command test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasinsaurralde committed Jan 11, 2022
1 parent d889095 commit 4a40a5e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions integration/generic_test.go
Expand Up @@ -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
})
}

0 comments on commit 4a40a5e

Please sign in to comment.