Skip to content

Commit

Permalink
Merge pull request #220 from jrafanie/fix_rails_7_failure
Browse files Browse the repository at this point in the history
Rails 7 - cpu_usage_rate_average should be a numeric, not a string.
  • Loading branch information
Fryguy authored Aug 6, 2024
2 parents 46f38f5 + f6e6c58 commit 76fd5a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/models/data_rollup_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
}
}
expect(data_rollup.start_time.month).to eq(data_rollup.end_time.month)
expect(data_rollup.get_group('CPU', 'average')).to eq([data_rollup.resource.metrics.for_time_range(data_rollup.start_time, data_rollup.end_time).average(:cpu_usage_rate_average).to_s, "percent"])
expect(data_rollup.get_group('CPU', 'average')).to eq([data_rollup.resource.metrics.for_time_range(data_rollup.start_time, data_rollup.end_time).average(:cpu_usage_rate_average), "percent"])
end

it 'return nil if field is not found' do
Expand Down

0 comments on commit 76fd5a8

Please sign in to comment.