Skip to content

Commit 7ab2318

Browse files
committed
test: Use more precise variable name
1 parent 9f2cf99 commit 7ab2318

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
@@ -15,7 +15,7 @@
1515
)
1616
}
1717
let(:frozen_time) { Time.utc(2020,4,20,4,20,45) }
18-
let(:ddog_time) { Time.utc(2020,4,20,4,16).to_i * 1000.0 }
18+
let(:four_minutes_ago) { Time.utc(2020,4,20,4,16,12).to_i * 1000.0 }
1919

2020
def redis_slowlog(index, time, microseconds, command='eval')
2121
[
@@ -70,7 +70,7 @@ def redis_slowlog(index, time, microseconds, command='eval')
7070
"query_index"=>0,
7171
"aggr"=>nil,
7272
"scope"=>"replication_group:replicationgroup",
73-
"pointlist"=>[[ddog_time, 99994.0], [ddog_time - 5000, 99378.0]],
73+
"pointlist"=>[[four_minutes_ago, 99994.0], [four_minutes_ago - 5000, 99378.0]],
7474
"expression"=>"rspec.redis.slowlog.micros.95percentile{replication_group:infraeng-dev-redis}",
7575
"unit"=>nil,
7676
"display_name"=>"rspec.redis.slowlog.micros.95percentile"

0 commit comments

Comments
 (0)