Skip to content

Speed up TestIntegration in campaigns package

Administrator requested to merge campaigns/speed-up-integration-tests into master

Created by: mrnugget

Before:

$ go test -count=1 .
ok      github.com/sourcegraph/sourcegraph/enterprise/internal/campaigns
7.521s

$ go test -count=1 .
ok      github.com/sourcegraph/sourcegraph/enterprise/internal/campaigns

7.239s
$ go test -count=1 .
ok      github.com/sourcegraph/sourcegraph/enterprise/internal/campaigns
7.269s

$ go test -count=1 .
ok      github.com/sourcegraph/sourcegraph/enterprise/internal/campaigns
7.487s

After:

$ go test -count=1 .
ok      github.com/sourcegraph/sourcegraph/enterprise/internal/campaigns
4.266s

$ go test -count=1 .
ok      github.com/sourcegraph/sourcegraph/enterprise/internal/campaigns
4.367s

$ go test -count=1 .
ok      github.com/sourcegraph/sourcegraph/enterprise/internal/campaigns
4.298s

Merge request reports

Loading