summaryrefslogtreecommitdiff
path: root/spec/workers
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-10-06 18:23:53 +0900
committerShinya Maeda <shinya@gitlab.com>2017-10-06 18:23:53 +0900
commit638c616296b37b528c1b56f63a818301a502f7aa (patch)
treef58194566e84063584983a0e8f48d39f3e90bd50 /spec/workers
parent354e2ef08df3c704ca325415116587440260f67b (diff)
downloadgitlab-ce-638c616296b37b528c1b56f63a818301a502f7aa.tar.gz
Use utc for time comparision
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/wait_for_cluster_creation_worker_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/workers/wait_for_cluster_creation_worker_spec.rb b/spec/workers/wait_for_cluster_creation_worker_spec.rb
index 6d82981287f..dcd4a3b9aec 100644
--- a/spec/workers/wait_for_cluster_creation_worker_spec.rb
+++ b/spec/workers/wait_for_cluster_creation_worker_spec.rb
@@ -24,7 +24,7 @@ describe WaitForClusterCreationWorker do
context 'when operation timeout' do
before do
- allow(operation).to receive(:start_time).and_return(30.minutes.ago)
+ allow(operation).to receive(:start_time).and_return(30.minutes.ago.utc)
end
it 'sets an error message on cluster' do