summaryrefslogtreecommitdiff
path: root/qa/qa/resource/events/project.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/resource/events/project.rb')
-rw-r--r--qa/qa/resource/events/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/qa/resource/events/project.rb b/qa/qa/resource/events/project.rb
index 8c97f66c663..0348f2f05f5 100644
--- a/qa/qa/resource/events/project.rb
+++ b/qa/qa/resource/events/project.rb
@@ -20,7 +20,7 @@ module QA
end
end
- def wait_for_push_new_branch(branch_name = "master")
+ def wait_for_push_new_branch(branch_name = self.default_branch)
QA::Runtime::Logger.debug(%Q[#{self.class.name} - wait_for_push_new_branch with branch_name "#{branch_name}"])
wait_for_event do
events(action: 'pushed').any? { |event| event.dig(:push_data, :ref) == branch_name }