Speed up the "Project Network Graph" cucumber feature

This change involves stubbing out the call to `Grit::Commit.find_all`
and limiting the number of commits to 10 vs. the standard of 650 used by
`Gitlab::GraphCommit.to_graph`.

Prior to this change, this single feature required almost 3 minutes of
running time and over 2 GB of memory on my machine. Now it takes less
than 3 seconds.
This commit is contained in:
Robert Speicher 2012-08-21 22:20:09 -04:00
parent 3784f134f1
commit 3095483e65
3 changed files with 11 additions and 5 deletions

View file

@ -4,9 +4,7 @@ Feature: Project Network Graph
Background:
Given I signin as a user
And I own project "Shop"
And I visit project "Shop" network page
And I visit project "Shop" network page
Scenario: I should see project network
Then page should have network graph