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

golang format tools #538

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
}