Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <zegerjan@gitlab.com>2017-10-17 11:46:05 +0300
committerZeger-Jan van de Weg <zegerjan@gitlab.com>2017-10-17 11:46:05 +0300
commit211e78d59410afe25032614db17c5d842d033fb9 (patch)
tree94b6a6a3457c7fbd540a001fc6a5c31e6c30a1de /doc
parent61f4d08b7bf734c9af579e54fa8c74ac1bde4b39 (diff)
Update documentation
Diffstat (limited to 'doc')
-rw-r--r--doc/development/gitaly.md18
1 files changed, 3 insertions, 15 deletions
diff --git a/doc/development/gitaly.md b/doc/development/gitaly.md
index 0f73217ada3..2824bbdcfca 100644
--- a/doc/development/gitaly.md
+++ b/doc/development/gitaly.md
@@ -85,24 +85,12 @@ Commits and other git data, is now fetched through Gitaly. These fetches can,
much like with a database, be batched. This improves performance for the client
and for Gitaly itself and therefore for the users too. To keep performance stable
and guard performance regressions, Gitaly calls can be counted and the call count
-can be tested against:
+can be tested against. This requires the `:request_store` flag to be set.
```ruby
describe 'Gitaly Request count tests' do
- context 'when the request store is activated', :request_store do
- it 'correctly counts the gitaly requests made' do
- count = gitaly_request_count { subject }
-
- expect { subject }.to change { Gitlab::GitalyClient.get_request_count }.by(10)
- end
- end
-
- context 'when the request store is disabled' do
- it 'is always zero' do
- subject
-
- expect(Gitlab::GitalyClient.get_request_count).to be_zero
- end
+ it 'correctly counts the gitaly requests made' do
+ expect { subject }.to change { Gitlab::GitalyClient.get_request_count }.by(10)
end
end
```