Skip to content

Commit 3f45234

Browse files
committed
test: #redis_slowlog can specify command
1 parent f1b08e5 commit 3f45234

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/slowlog_check_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
let(:frozen_time) { Time.utc(2020,4,20,4,20,45) }
1818
let(:ddog_time) { Time.utc(2020,4,20,4,16).to_i * 1000.0 }
1919

20-
def redis_slowlog(index, time, microseconds)
20+
def redis_slowlog(index, time, microseconds, command='eval')
2121
[
2222
index,
2323
time.to_i,
2424
microseconds,
2525
[
26-
"eval",
26+
command,
2727
"",
2828
"0"
2929
],

0 commit comments

Comments
 (0)