diff options
author | Sean McGivern <sean@gitlab.com> | 2017-11-22 11:12:47 +0000 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2017-11-22 15:08:55 +0000 |
commit | db1925f917b30571e0e9d4de63417db90dc693d7 (patch) | |
tree | 82cfe66b4c93e7c1127d2782f81b0c97d5e3e60e /shared | |
parent | 0efa7e24f22abd1dc04c165f31e7b77b0eb30ed4 (diff) | |
download | gitlab-ce-improve-extra-queries-output.tar.gz |
Improve output for extra queries in specsimprove-extra-queries-output
Previously, this used `Array#-`, which would remove all queries that matches the
query text in the original set.
However, sometimes we have a problem with parameterised queries, where the query
text is identical both times, so we'd run a query N times instead of once, and
it would be hidden from the output.
Replace the logic to only remove a given query N times from the actual log,
where N is the number of times it appears in the expected log.
Diffstat (limited to 'shared')
0 files changed, 0 insertions, 0 deletions