Pipelines failing on shared runner

Summary

i am using selenium with python and unit test framework. We are using key clock server for login so when we try to login in our application it redirects us to key clock server then after login credentials it redirects us to our application.My problem is that redirecting takes time but after adding explicit wait or const wait pipeline working fine on group runner but failing on shared runner.

Steps to reproduce

log in to the application using key clock server with selenium.

What is the current bug behavior?

Pipeline failing

What is the expected correct behavior?

pipeline should pass on the shared runner

Relevant logs and/or screenshots

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

Edited by shahrukh khaliq