Коммит c91252d6 создал по автору Thong Kuah's avatar Thong Kuah
Просмотр файлов

Merge branch '286874-fix-gpg-prometheus-spec' into 'master'

Fix failing GPG spec related to Prometheus

See merge request gitlab-org/gitlab!48308
владельцы 95a40c04 d2a0889c
......@@ -143,6 +143,11 @@
end
it 'keeps track of created and removed keychains in counters' do
# Gitlab::Gpg may be memoizing stale counters if a preceding spec resets the Prometheus registry
# https://gitlab.com/gitlab-org/gitlab/-/issues/286874
described_class.remove_instance_variable(:@tmp_keychains_created)
described_class.remove_instance_variable(:@tmp_keychains_removed)
created = Gitlab::Metrics.counter(:gpg_tmp_keychains_created_total, 'The number of temporary GPG keychains')
removed = Gitlab::Metrics.counter(:gpg_tmp_keychains_removed_total, 'The number of temporary GPG keychains')
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать