gofmt
This commit is contained in:
@@ -2,22 +2,22 @@ package util
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"testing"
|
||||
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
|
||||
"testing"
|
||||
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
|
||||
)
|
||||
|
||||
func TestMakeJSONString(t *testing.T) {
|
||||
pod := api.Pod{
|
||||
JSONBase: api.JSONBase{ ID: "foo" },
|
||||
JSONBase: api.JSONBase{ID: "foo"},
|
||||
Labels: map[string]string{
|
||||
"foo": "bar",
|
||||
"baz": "blah",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
body := MakeJSONString(pod)
|
||||
|
||||
|
||||
expectedBody, err := json.Marshal(pod)
|
||||
expectNoError(t, err)
|
||||
if string(expectedBody) != body {
|
||||
@@ -30,7 +30,7 @@ func TestHandleCrash(t *testing.T) {
|
||||
expect := 10
|
||||
for i := 0; i < expect; i = i + 1 {
|
||||
defer HandleCrash()
|
||||
if i % 2 == 0 {
|
||||
if i%2 == 0 {
|
||||
panic("Test Panic")
|
||||
}
|
||||
count = count + 1
|
||||
@@ -39,4 +39,3 @@ func TestHandleCrash(t *testing.T) {
|
||||
t.Errorf("Expected %d iterations, found %d", expect, count)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user