golang format tools (#1016)

Produced via:
  `gofmt -s -w $(find -path './vendor' -prune -o -path './third_party' -prune -o -type f -name '*.go' -print)`
  `goimports -w $(find -name '*.go' | grep -v vendor | grep -v third_party)`
/assign n3wscott
/cc n3wscott
This commit is contained in:
Matt Moore 2020-01-28 07:32:26 -08:00 committed by Knative Prow Robot
parent 4b31f15f21
commit 949fbc99b5
1 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ func TestMain(m *testing.M) {
func TestMessaging(t *testing.T) {
testCases := []struct {
name string
name string
}{
{"test name"},
{"special name <>&'\""},
@ -68,7 +68,7 @@ func TestMessaging(t *testing.T) {
if err != nil {
t.Fatalf("expected to get the message history, but failed: %v", err)
}
if len(history) != historySizes[i] + 1 {
if len(history) != historySizes[i]+1 {
t.Fatalf("the message is expected to be successfully sent, but failed: %v", err)
}
}
@ -82,7 +82,7 @@ func TestMessaging(t *testing.T) {
if err != nil {
t.Fatalf("expected to get the message history, but failed: %v", err)
}
if len(history) != historySizes[i] + 1 {
if len(history) != historySizes[i]+1 {
t.Fatalf("the message history is expected to be unchanged, but now it's: %d", len(history))
}
}