diff --git a/jsonp_test.go b/jsonp_test.go index da7fa02..ae63cbd 100644 --- a/jsonp_test.go +++ b/jsonp_test.go @@ -3,7 +3,6 @@ package mango import ( "net/http" "testing" - "runtime" ) func jsonServer(env Env) (Status, Headers, Body) { @@ -14,10 +13,6 @@ func nonJsonServer(env Env) (Status, Headers, Body) { return 200, Headers{"Content-Type": []string{"text/html"}}, Body("

Hello World!

") } -func init() { - runtime.GOMAXPROCS(4) -} - func TestJSONPSuccess(t *testing.T) { // Compile the stack jsonpStack := new(Stack) diff --git a/logger_test.go b/logger_test.go index d33915f..c03c687 100644 --- a/logger_test.go +++ b/logger_test.go @@ -5,7 +5,6 @@ import ( "net/http" "log" "testing" - "runtime" ) var loggerBuffer = &bytes.Buffer{} @@ -15,10 +14,6 @@ func loggerTestServer(env Env) (Status, Headers, Body) { return 200, Headers{}, Body("Hello World!") } -func init() { - runtime.GOMAXPROCS(4) -} - func TestLogger(t *testing.T) { // Compile the stack loggerStack := new(Stack) diff --git a/mango_test.go b/mango_test.go index 74013be..5f2bddf 100644 --- a/mango_test.go +++ b/mango_test.go @@ -6,7 +6,6 @@ import ( "testing" "fmt" "net/http" - "runtime" ) func helloWorld(env Env) (Status, Headers, Body) { @@ -14,8 +13,6 @@ func helloWorld(env Env) (Status, Headers, Body) { } func init() { - runtime.GOMAXPROCS(4) - fmt.Println("Testing Mango Version:", VersionString()) } diff --git a/redirect_test.go b/redirect_test.go index fdddd90..5b44197 100644 --- a/redirect_test.go +++ b/redirect_test.go @@ -3,17 +3,12 @@ package mango import ( "net/http" "testing" - "runtime" ) func redirectTestServer(env Env) (Status, Headers, Body) { return Redirect(302, "/somewhere") } -func init() { - runtime.GOMAXPROCS(4) -} - func TestRedirect(t *testing.T) { // Compile the stack redirectApp := new(Stack).Compile(redirectTestServer) diff --git a/routing_test.go b/routing_test.go index 9b13acd..8628821 100644 --- a/routing_test.go +++ b/routing_test.go @@ -3,7 +3,6 @@ package mango import ( "net/http" "testing" - "runtime" ) func routingTestServer(env Env) (Status, Headers, Body) { @@ -18,10 +17,6 @@ func routingBTestServer(env Env) (Status, Headers, Body) { return 200, Headers{}, Body("Server B") } -func init() { - runtime.GOMAXPROCS(4) -} - func TestRoutingSuccess(t *testing.T) { // Compile the stack routingStack := new(Stack) diff --git a/sessions_test.go b/sessions_test.go index 1ea98de..50e74ee 100644 --- a/sessions_test.go +++ b/sessions_test.go @@ -2,15 +2,10 @@ package mango import ( "net/http" - "runtime" "strings" "testing" ) -func init() { - runtime.GOMAXPROCS(4) -} - func TestSessionEncodingDecoding(t *testing.T) { cookie := map[string]interface{}{"value": "foo"} secret := "secret" diff --git a/show_errors_test.go b/show_errors_test.go index 531387e..5778870 100644 --- a/show_errors_test.go +++ b/show_errors_test.go @@ -3,7 +3,6 @@ package mango import ( "net/http" "testing" - "runtime" ) func showErrorsTestServer(env Env) (Status, Headers, Body) { @@ -11,10 +10,6 @@ func showErrorsTestServer(env Env) (Status, Headers, Body) { return 200, Headers{}, Body("Hello World!") } -func init() { - runtime.GOMAXPROCS(4) -} - func TestShowErrors(t *testing.T) { // Compile the stack showErrorsStack := new(Stack) diff --git a/static_test.go b/static_test.go index 67ebe78..23b1709 100644 --- a/static_test.go +++ b/static_test.go @@ -5,17 +5,12 @@ import ( "net/http" "io/ioutil" "testing" - "runtime" ) func staticTestServer(env Env) (Status, Headers, Body) { return 200, Headers{"Content-Type": []string{"text/html"}}, Body("

Hello World!

") } -func init() { - runtime.GOMAXPROCS(4) -} - func TestStaticSuccess(t *testing.T) { // Compile the stack staticStack := new(Stack)