diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-10-06 12:23:53 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-10-06 12:23:53 +0300 |
commit | 638c616296b37b528c1b56f63a818301a502f7aa (patch) | |
tree | f58194566e84063584983a0e8f48d39f3e90bd50 /spec/workers | |
parent | 354e2ef08df3c704ca325415116587440260f67b (diff) |
Use utc for time comparision
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/wait_for_cluster_creation_worker_spec.rb | 2 |
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 |