diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-04-06 15:21:25 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-04-06 15:21:25 +0200 |
commit | 93f9e71b0dc47d88f1077ccaeaeb5ea91e51c0fc (patch) | |
tree | e1c4f64fdc453407ad44b3a9ab0b795f64d57575 /spec/serializers/pipeline_serializer_spec.rb | |
parent | 62919a17e16de107c7fe9c1952567b3908a8f151 (diff) | |
download | gitlab-ce-93f9e71b0dc47d88f1077ccaeaeb5ea91e51c0fc.tar.gz |
Further optimise queries
Diffstat (limited to 'spec/serializers/pipeline_serializer_spec.rb')
-rw-r--r-- | spec/serializers/pipeline_serializer_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/serializers/pipeline_serializer_spec.rb b/spec/serializers/pipeline_serializer_spec.rb index 997f40662c5..75cfd000809 100644 --- a/spec/serializers/pipeline_serializer_spec.rb +++ b/spec/serializers/pipeline_serializer_spec.rb @@ -112,7 +112,7 @@ describe PipelineSerializer do it "verifies number of queries" do recorded = ActiveRecord::QueryRecorder.new { subject } - expect(recorded.count).to be_within(10).of(230) + expect(recorded.count).to be_within(10).of(93) expect(recorded.cached_count).to be_within(5).of(5) end |