Follow up - f35cd7fbe9
- Race condition in (wrong) test fails CI.
This commit is contained in:
parent
2c8825b387
commit
9ce331be14
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue