golang format tools (#419)

Produced via:
  `gofmt -s -w $(find -path './vendor' -prune -o -type f -name '*.go' -print))`
  `goimports -w $(find -name '*.go' | grep -v vendor)`
This commit is contained in:
mattmoor-sockpuppet 2019-05-18 10:35:26 -07:00 committed by Knative Prow Robot
parent 837d0c61aa
commit 34792a92ce
2 changed files with 6 additions and 6 deletions

View File

@ -27,9 +27,9 @@ import (
)
type counter struct {
name string
cfg []*corev1.ConfigMap
wg *sync.WaitGroup
name string
cfg []*corev1.ConfigMap
wg *sync.WaitGroup
}
func (c *counter) callback(cm *corev1.ConfigMap) {
@ -357,14 +357,13 @@ func TestWatchWithDefaultAfterStart(t *testing.T) {
foo1 := &counter{name: "foo1"}
// Add the WatchWithDefault. This should panic because the InformedWatcher has already started.
func() {
defer func() {
recover()
}()
cm.WatchWithDefault(*defaultFooCM, foo1.callback)
t.Fatal("WatchWithDefault should have panicked")
t.Fatal("WatchWithDefault should have panicked")
}()
// We expect nothing.

View File

@ -19,10 +19,11 @@ package controller
import (
"context"
"fmt"
"github.com/google/uuid"
"sync"
"time"
"github.com/google/uuid"
"go.uber.org/zap"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"