Commit 57bef2d3 authored by Tiger's avatar Tiger

Fix flaky timestamp comparison in terraform/states_spec.rb

parent 033e05b6
...@@ -58,8 +58,8 @@ RSpec.describe 'query terraform states' do ...@@ -58,8 +58,8 @@ RSpec.describe 'query terraform states' do
expect(state.dig('lockedByUser', 'id')).to eq(terraform_state.locked_by_user.to_global_id.to_s) expect(state.dig('lockedByUser', 'id')).to eq(terraform_state.locked_by_user.to_global_id.to_s)
expect(version['id']).to eq(latest_version.to_global_id.to_s) expect(version['id']).to eq(latest_version.to_global_id.to_s)
expect(version['createdAt']).to eq(terraform_state.created_at.iso8601) expect(version['createdAt']).to eq(latest_version.created_at.iso8601)
expect(version['updatedAt']).to eq(terraform_state.updated_at.iso8601) expect(version['updatedAt']).to eq(latest_version.updated_at.iso8601)
expect(version.dig('createdByUser', 'id')).to eq(latest_version.created_by_user.to_global_id.to_s) expect(version.dig('createdByUser', 'id')).to eq(latest_version.created_by_user.to_global_id.to_s)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment