Merge pull request #5 from kyler-instructure/add_specific_build_time

Add specific build time
This commit is contained in:
jbutte 2022-02-02 12:06:24 -07:00 committed by GitHub
commit 144a188a33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -210,6 +210,7 @@ module RSpecQ
@redis.multi do
@redis.lpush(key_build_times, Float(duration))
@redis.ltrim(key_build_times, 0, 99)
@redis.set(key_build_time, Integer(duration * 1000))
end
end
@ -407,6 +408,10 @@ module RSpecQ
"build_times"
end
def key_build_time
key("build_time")
end
private
def key(*keys)