@@ -119,12 +119,12 @@ func TestLua(t *testing.T) {
119119 c .Do ("EVAL" , "return {ok = 'great', notok = 'yes'}" , "0" ) // doc error?
120120 c .Do ("EVAL" , "return {1, 2, ok = 'great', notok = 'yes'}" , "0" ) // doc error?
121121
122- c .DoLoosely ( "EVAL" , "return redis.error_reply(1)" , "0" )
123- c .DoLoosely ( "EVAL" , "return redis.error_reply()" , "0" )
124- c .DoLoosely ( "EVAL" , "return redis.error_reply(redis.error_reply('foo'))" , "0" )
125- c .DoLoosely ( "EVAL" , "return redis.status_reply(1)" , "0" )
126- c .DoLoosely ( "EVAL" , "return redis.status_reply()" , "0" )
127- c .DoLoosely ( "EVAL" , "return redis.status_reply(redis.status_reply('foo'))" , "0" )
122+ c .Error ( "type of arguments" , "EVAL" , "return redis.error_reply(1)" , "0" )
123+ c .Error ( "type of arguments" , "EVAL" , "return redis.error_reply()" , "0" )
124+ c .Error ( "type of arguments" , "EVAL" , "return redis.error_reply(redis.error_reply('foo'))" , "0" )
125+ c .Error ( "type of arguments" , "EVAL" , "return redis.status_reply(1)" , "0" )
126+ c .Error ( "type of arguments" , "EVAL" , "return redis.status_reply()" , "0" )
127+ c .Error ( "type of arguments" , "EVAL" , "return redis.status_reply(redis.status_reply('foo'))" , "0" )
128128 })
129129
130130 // state inside lua
0 commit comments