about summary refs log tree commit diff
path: root/spec/services
diff options
context:
space:
mode:
authorJenkins <jenkins@jenkins.ninjawedding.org>2018-01-17 16:17:10 +0000
committerJenkins <jenkins@jenkins.ninjawedding.org>2018-01-17 16:17:10 +0000
commitaa2bf07281ba1e41c9e32a760684c15081524a7c (patch)
treea5ae679254948e9825676c87aca2ca4d164806c3 /spec/services
parent60ff0869603c80fbaae407e492e0e7f60e2e40e6 (diff)
parentfbe7756da6e817c3de633f624f5a28bc133e78c8 (diff)
Merge remote-tracking branch 'tootsuite/master' into glitchsoc/master
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/precompute_feed_service_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/precompute_feed_service_spec.rb b/spec/services/precompute_feed_service_spec.rb
index d1ef6c184..396a3c3fb 100644
--- a/spec/services/precompute_feed_service_spec.rb
+++ b/spec/services/precompute_feed_service_spec.rb
@@ -16,7 +16,7 @@ RSpec.describe PrecomputeFeedService do
 
       subject.call(account)
 
-      expect(Redis.current.zscore(FeedManager.instance.key(:home, account.id), reblog.id)).to eq status.id.to_f
+      expect(Redis.current.zscore(FeedManager.instance.key(:home, account.id), reblog.id)).to be_within(0.1).of(status.id.to_f)
     end
 
     it 'does not raise an error even if it could not find any status' do