From fd8d49dde6068f6b4858352cfa056dfbd6842fe1 Mon Sep 17 00:00:00 2001 From: Avik Sengupta Date: Fri, 5 Jul 2024 22:37:13 +0100 Subject: [PATCH] Fix tests --- test/redis_tests.jl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/redis_tests.jl b/test/redis_tests.jl index c95aa77..4e7af05 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)