summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2018-02-25 12:46:16 +1100
committerDylan Griffith <dyl.griffith@gmail.com>2018-02-25 12:50:03 +1100
commit233cf07083faabcc11b2fa8de04123156d712efb (patch)
tree576ce97ca187c18f685c9c28a2551598646b718f /spec
parent20897ebc7afe498c7a521dbe9f9c197ee63d346b (diff)
downloadgitlab-ce-233cf07083faabcc11b2fa8de04123156d712efb.tar.gz
Remove redundant code and increase delay for ClusterWaitForIngressIpAddressWorker (#42643)
Diffstat (limited to 'spec')
-rw-r--r--spec/models/clusters/applications/ingress_spec.rb4
-rw-r--r--spec/workers/cluster_wait_for_ingress_ip_address_worker_spec.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/clusters/applications/ingress_spec.rb b/spec/models/clusters/applications/ingress_spec.rb
index 80c450c30cb..a34f4ff2b48 100644
--- a/spec/models/clusters/applications/ingress_spec.rb
+++ b/spec/models/clusters/applications/ingress_spec.rb
@@ -20,7 +20,7 @@ describe Clusters::Applications::Ingress do
it 'schedules a ClusterWaitForIngressIpAddressWorker' do
expect(ClusterWaitForIngressIpAddressWorker).to have_received(:perform_in)
- .with(ClusterWaitForIngressIpAddressWorker::INTERVAL, 'ingress', application.id, 3)
+ .with(Clusters::Applications::Ingress::FETCH_IP_ADDRESS_DELAY, 'ingress', application.id)
end
end
@@ -33,7 +33,7 @@ describe Clusters::Applications::Ingress do
it 'schedules a ClusterWaitForIngressIpAddressWorker' do
expect(ClusterWaitForIngressIpAddressWorker).to have_received(:perform_async)
- .with('ingress', application.id, 3)
+ .with('ingress', application.id)
end
context 'when the application is not installed' do
diff --git a/spec/workers/cluster_wait_for_ingress_ip_address_worker_spec.rb b/spec/workers/cluster_wait_for_ingress_ip_address_worker_spec.rb
index baa295984bf..2e2e9afd25a 100644
--- a/spec/workers/cluster_wait_for_ingress_ip_address_worker_spec.rb
+++ b/spec/workers/cluster_wait_for_ingress_ip_address_worker_spec.rb
@@ -22,7 +22,7 @@ describe ClusterWaitForIngressIpAddressWorker do
end
it 'finds the application and calls CheckIngressIpAddressService#execute' do
- worker.perform('ingress', 117, 2)
+ worker.perform('ingress', 117)
expect(service).to have_received(:execute)
end