Skip to content

Commit 67d35ca

Browse files
committed
minimal int test
1 parent 787ea9b commit 67d35ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

integration/script_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ func TestScript(t *testing.T) {
2121
c.Do("EVAL", "return redis.call('ZRANGE', 'q', 0, -1)", "0")
2222
c.Do("EVAL", "return redis.call('LPOP', 'foo')", "0")
2323

24+
c.Do("EVAL_RO", "return 42", "0")
25+
c.Do("EVAL_RO", "return 42+2", "0")
26+
c.Error("Write commands are not allowed", "EVAL_RO", "return redis.call('LPOP', 'foo')", "0")
27+
2428
// failure cases
2529
c.Error("wrong number", "EVAL")
2630
c.Error("wrong number", "EVAL", "return 42")

0 commit comments

Comments
 (0)