Improves performance tests

This commit is contained in:
Manu Mtz-Almeida
2015-06-04 12:50:52 +02:00
parent 971c44c8a8
commit 7186200309
2 changed files with 37 additions and 23 deletions
+3 -3
View File
@@ -298,7 +298,7 @@ func githubConfigRouter(router *Engine) {
}
func TestGithubAPI(t *testing.T) {
DefaultWriter = FakeWriter{}
DefaultWriter = newMockWriter()
router := Default()
githubConfigRouter(router)
@@ -357,7 +357,7 @@ func BenchmarkGithub(b *testing.B) {
}
func BenchmarkParallelGithub(b *testing.B) {
DefaultWriter = FakeWriter{}
DefaultWriter = newMockWriter()
router := New()
githubConfigRouter(router)
@@ -373,7 +373,7 @@ func BenchmarkParallelGithub(b *testing.B) {
}
func BenchmarkParallelGithubDefault(b *testing.B) {
DefaultWriter = FakeWriter{}
DefaultWriter = newMockWriter()
router := Default()
githubConfigRouter(router)