Skip to content
Snippets Groups Projects
Verified Commit 3a065bcc authored by Igor Drozdov's avatar Igor Drozdov :two: Committed by GitLab
Browse files

Merge branch 'mk/fix-flaky-test-ntp-server-dependency' into 'master'

Geo: Fix flaky test depending on NTP servers

Closes gitlab-org/quality/engineering-productivity/master-broken-incidents#5117

See merge request !143293



Merged-by: Igor Drozdov's avatarIgor Drozdov <idrozdov@gitlab.com>
Approved-by: default avatarPrabakaran Murugesan <pmurugesan@gitlab.com>
Approved-by: Igor Drozdov's avatarIgor Drozdov <idrozdov@gitlab.com>
Co-authored-by: Michael Kozono's avatarMike Kozono <mkozono@gitlab.com>
parents b6edfb3b ad856714
No related branches found
No related tags found
2 merge requests!144312Change service start (cut-off) date for code suggestions to March 15th,!143293Geo: Fix flaky test depending on NTP servers
Pipeline #1158636970 passed
......@@ -62,6 +62,9 @@
end
it 'passes with a success message' do
ntp_response = instance_double(Net::NTP::Response, offset: 0.1234)
expect(Net::NTP).to receive(:get).with(ntp_host_env, ntp_port_env, ntp_timeout_env.to_i)
.and_return(ntp_response)
expect_pass
expect(subject.multi_check).to be_truthy
......@@ -70,6 +73,9 @@
context 'with default NTP connection params' do
it 'passes with a success message' do
ntp_response = instance_double(Net::NTP::Response, offset: 0.1234)
expect(Net::NTP).to receive(:get).with('pool.ntp.org', 'ntp', Net::NTP::TIMEOUT.to_i)
.and_return(ntp_response)
expect_pass
expect(subject.multi_check).to be_truthy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment