1 // Copyright 2022 The Kubernetes Authors. 2 // SPDX-License-Identifier: Apache-2.0 3 4 package watcher 5 6 import ( 7 "os" 8 "testing" 9 10 "github.com/onsi/gomega/format" 11 "k8s.io/klog/v2" 12 ) 13 14 // TestMain executes the tests for this package, with optional logging. 15 // To see all logs, use: 16 // go test sigs.k8s.io/cli-utils/pkg/kstatus/watcher -v -args -v=5 17 func TestMain(m *testing.M) { 18 // increase from 4000 to handle long event lists 19 format.MaxLength = 10000 20 klog.InitFlags(nil) 21 os.Exit(m.Run()) 22 } 23