Skip to content
代码片段 群组 项目
提交 cbd954a9 编辑于 作者: rkumar555's avatar rkumar555
浏览文件

Fix the remaining flakiness in the spec

上级 363d0856
No related branches found
No related tags found
无相关合并请求
......@@ -337,6 +337,14 @@
delete
# Add delay to allow Zoekt wbeserver to finish the deletion
10.times do
results = client.search('.*', num: 1, project_ids: [project_1.id], node_id: node_id, search_mode: :regex)
break if results[:Result][:FileCount] == 0
sleep 0.01
end
search_results = described_class.new.search('use.*egex', num: 10, project_ids: [project_1.id],
node_id: node_id, search_mode: :regex)
expect(search_results[:Result][:Files].to_a).to be_empty
......@@ -387,6 +395,16 @@
expect(search_results[:Result][:Files].to_a.size).to be > 0
client.truncate
# Add delay to allow Zoekt wbeserver to finish the truncation
project_ids = [project_1, project_2].pluck(:id)
10.times do
results = client.search('.*', num: 1, project_ids: project_ids, node_id: node.id, search_mode: :regex)
break if results[:Result][:FileCount] == 0
sleep 0.01
end
search_results = client.search('use.*egex', num: 10, project_ids: [project_1.id], node_id: node.id,
search_mode: :regex)
expect(search_results[:Result][:Files].to_a.size).to eq(0)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册