From e567348a69a0a02f474ed56ea809eff36ab3ee0f Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Fri, 26 Jun 2020 14:24:01 +1000 Subject: [PATCH] Ensure that enough time passes for caching spec --- spec/features/consumer/caching/darkswarm_caching_spec.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/features/consumer/caching/darkswarm_caching_spec.rb b/spec/features/consumer/caching/darkswarm_caching_spec.rb index 55f41aeee1..14ccbd2ab9 100644 --- a/spec/features/consumer/caching/darkswarm_caching_spec.rb +++ b/spec/features/consumer/caching/darkswarm_caching_spec.rb @@ -45,6 +45,9 @@ feature "Darkswarm data caching", js: true, caching: true do expect(page).to have_content property.presentation end + # Update rows which should also update the timestamp. + # The timestamp represents seconds, so waiting one second is enough. + sleep 1 taxon.update!(name: "Changed Taxon") property.update!(presentation: "Changed Property")