提交 df5b7a66 编写于 作者: S Sean McGivern

Wait for requests in LFS files spec

Without this, sometimes we will get a unique constraint violation about
GPG signatures on MySQL.
上级 30d71ccf
......@@ -12,6 +12,7 @@ describe 'Projects > Files > User browses LFS files' do
before do
allow_any_instance_of(Project).to receive(:lfs_enabled?).and_return(false)
visit project_tree_path(project, 'lfs')
wait_for_requests
end
it 'is possible to see raw content of LFS pointer' do
......@@ -26,10 +27,11 @@ describe 'Projects > Files > User browses LFS files' do
end
end
context 'when LFS is enabled' do
context 'when LFS is enabled', :js do
before do
allow_any_instance_of(Project).to receive(:lfs_enabled?).and_return(true)
visit project_tree_path(project, 'lfs')
wait_for_requests
end
it 'shows an LFS object' do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册