diff --git a/test/redis_tests.jl b/test/redis_tests.jl index b0b577a..47e7bd9 100644 --- a/test/redis_tests.jl +++ b/test/redis_tests.jl @@ -333,14 +333,15 @@ function redis_tests(conn = RedisConnection()) @testset "Scripting" begin script = "return {KEYS[1], KEYS[2], ARGV[1], ARGV[2]}" - args = ["key1", "key2", "first", "second"] - resp = evalscript(conn, script, 2, args) - @test resp == args + keys = ["key1", "key2"] + args = ["first", "second"] + resp = evalscript(conn, script, 2, keys, args) + @test resp == vcat(keys, args) del(conn, "key1") script = "return redis.call('set', KEYS[1], 'bar')" ky = "foo" - resp = evalscript(conn, script, 1, [ky]) + resp = evalscript(conn, script, 1, [ky], []) @test resp == "OK" del(conn, ky)