Permalink
Browse files

Removing unnecessary GOMAXPROCS in benchmarks

  • Loading branch information...
1 parent 6d064af commit 2ef973d6474ef109f6350241a930db8b9671790d @paulbellamy committed Mar 10, 2012
Showing with 0 additions and 38 deletions.
  1. +0 −5 jsonp_test.go
  2. +0 −5 logger_test.go
  3. +0 −3 mango_test.go
  4. +0 −5 redirect_test.go
  5. +0 −5 routing_test.go
  6. +0 −5 sessions_test.go
  7. +0 −5 show_errors_test.go
  8. +0 −5 static_test.go
View
@@ -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("<h1>Hello World!</h1>")
}
-func init() {
- runtime.GOMAXPROCS(4)
-}
-
func TestJSONPSuccess(t *testing.T) {
// Compile the stack
jsonpStack := new(Stack)
View
@@ -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)
View
@@ -6,16 +6,13 @@ import (
"testing"
"fmt"
"net/http"
- "runtime"
)
func helloWorld(env Env) (Status, Headers, Body) {
return 200, Headers{}, Body("Hello World!")
}
func init() {
- runtime.GOMAXPROCS(4)
-
fmt.Println("Testing Mango Version:", VersionString())
}
View
@@ -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)
View
@@ -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)
View
@@ -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"
View
@@ -3,18 +3,13 @@ package mango
import (
"net/http"
"testing"
- "runtime"
)
func showErrorsTestServer(env Env) (Status, Headers, Body) {
panic("foo!")
return 200, Headers{}, Body("Hello World!")
}
-func init() {
- runtime.GOMAXPROCS(4)
-}
-
func TestShowErrors(t *testing.T) {
// Compile the stack
showErrorsStack := new(Stack)
View
@@ -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("<h1>Hello World!</h1>")
}
-func init() {
- runtime.GOMAXPROCS(4)
-}
-
func TestStaticSuccess(t *testing.T) {
// Compile the stack
staticStack := new(Stack)

0 comments on commit 2ef973d

Please sign in to comment.