From 9ce331be145365e27a0701e27f73536964758281 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Tue, 19 Nov 2019 15:49:53 +0100 Subject: [PATCH] Follow up - f35cd7fbe9d94b8353147c420853b369e82d46ee - Race condition in (wrong) test fails CI. --- spec/requests/ticket/article_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/requests/ticket/article_spec.rb b/spec/requests/ticket/article_spec.rb index 19917c233..584f11ca3 100644 --- a/spec/requests/ticket/article_spec.rb +++ b/spec/requests/ticket/article_spec.rb @@ -519,11 +519,11 @@ AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO context '10+ minutes after creation' do before do authenticated_as(agent_user) - travel 10.minutes + travel 11.minutes end it 'fails' do - expect { delete "/api/v1/ticket_articles/#{article.id}", params: {}, as: :json }.to change { Ticket::Article.exists?(id: article.id) }.to(false) + expect { delete "/api/v1/ticket_articles/#{article.id}", params: {}, as: :json }.not_to change { Ticket::Article.exists?(id: article.id) } end end end