Skip to content

Commit

Permalink
test: enable a few more config options
Browse files Browse the repository at this point in the history
Bumps code coverage from 31.2% to 31.9%. The newly covered code isn't
really tested against, but at least it's ran and we know it won't crash
under some very basic use.
  • Loading branch information
mvdan authored and buger committed Feb 10, 2017
1 parent f9419e2 commit 0537899
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ func TestMain(m *testing.M) {
config.EnableAnalytics = true
config.AnalyticsConfig.EnableGeoIP = true
config.AnalyticsConfig.GeoIPDBLocation = filepath.Join("testdata", "MaxMind-DB-test-ipv4-24.mmdb")
config.EnableJSVM = true
config.Monitor.EnableTriggerMonitors = true
config.AnalyticsConfig.NormaliseUrls.Enabled = true
initialiseSystem(nil)
if analytics.GeoIPDB == nil {
panic("GeoIPDB was not initialized")
Expand Down

0 comments on commit 0537899

Please sign in to comment.