Skip to content

Commit

Permalink
gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kr committed Apr 11, 2012
1 parent e169516 commit 855211d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func TestStats(t *testing.T) {
t.Fatal(err)
}
if len(m) != 1 || m["a"] != "ok" {
t.Fatalf("expected %#v, got %#v", map[string]string{"a":"ok"}, m)
t.Fatalf("expected %#v, got %#v", map[string]string{"a": "ok"}, m)
}
if err = c.Close(); err != nil {
t.Fatal(err)
Expand All @@ -184,7 +184,7 @@ func TestStatsJob(t *testing.T) {
t.Fatal(err)
}
if len(m) != 1 || m["a"] != "ok" {
t.Fatalf("expected %#v, got %#v", map[string]string{"a":"ok"}, m)
t.Fatalf("expected %#v, got %#v", map[string]string{"a": "ok"}, m)
}
if err = c.Close(); err != nil {
t.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,3 @@ func parseSize(s string) (string, int, error) {
}
return s[:i], n, nil
}

2 changes: 1 addition & 1 deletion parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

func TestParseDict(t *testing.T) {
d := parseDict([]byte("---\na: 1\nb: 2\n"))
if !reflect.DeepEqual(d, map[string]string{"a":"1", "b":"2"}) {
if !reflect.DeepEqual(d, map[string]string{"a": "1", "b": "2"}) {
t.Fatalf("got %v", d)
}
}
Expand Down
4 changes: 2 additions & 2 deletions tube_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func TestTubeStats(t *testing.T) {
t.Fatal(err)
}
if len(m) != 1 || m["a"] != "ok" {
t.Fatalf("expected %#v, got %#v", map[string]string{"a":"ok"}, m)
t.Fatalf("expected %#v, got %#v", map[string]string{"a": "ok"}, m)
}
if err = c.Close(); err != nil {
t.Fatal(err)
Expand All @@ -107,7 +107,7 @@ func TestTubeStats(t *testing.T) {
func TestTubePause(t *testing.T) {
c := NewConn(mock("pause-tube default 5\r\n", "PAUSED\r\n"))

err := c.Pause(5*time.Second)
err := c.Pause(5 * time.Second)
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 855211d

Please sign in to comment.