Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Commit

Permalink
golang format tools (#538)
Browse files Browse the repository at this point in the history
Produced via:
  `gofmt -s -w $(find -path './vendor' -prune -o -type f -name '*.go' -print))`
  `goimports -w $(find -name '*.go' | grep -v vendor)`
  • Loading branch information
mattmoor-sockpuppet authored and knative-prow-robot committed Jan 18, 2019
1 parent 1a41832 commit 1e64564
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions test/e2e/e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,19 +195,19 @@ func (c *buildClient) watchBuild(name string) (*v1alpha1.Build, error) {
// initialize is responsible for setting up and tearing down the testing environment,
// namely the test namespace.
func initialize(contextName string) (string, *logging.BaseLogger, *clients) {
flag.Parse()
logging.InitializeLogger(test.Flags.LogVerbose)
logger := logging.GetContextLogger("initialize")
flag.Set("alsologtostderr", "true")
if test.Flags.EmitMetrics {
logging.InitializeMetricExporter()
}
flag.Parse()
logging.InitializeLogger(test.Flags.LogVerbose)
logger := logging.GetContextLogger("initialize")
flag.Set("alsologtostderr", "true")
if test.Flags.EmitMetrics {
logging.InitializeMetricExporter()
}

buildTestNamespace, clients := createTestNamespace(logger)
buildTestNamespace, clients := createTestNamespace(logger)

// Cleanup namespace
test.CleanupOnInterrupt(func() { teardownNamespace(clients, buildTestNamespace, logger) }, logger)
// Cleanup namespace
test.CleanupOnInterrupt(func() { teardownNamespace(clients, buildTestNamespace, logger) }, logger)

testLogger := logging.GetContextLogger(contextName)
return buildTestNamespace, testLogger, buildClients(buildTestNamespace, testLogger)
testLogger := logging.GetContextLogger(contextName)
return buildTestNamespace, testLogger, buildClients(buildTestNamespace, testLogger)
}

0 comments on commit 1e64564

Please sign in to comment.