github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/pkg/graveler/staging/main_test.go (about) 1 package staging_test 2 3 import ( 4 "flag" 5 "os" 6 "testing" 7 8 "github.com/treeverse/lakefs/pkg/logging" 9 ) 10 11 func TestMain(m *testing.M) { 12 flag.Parse() 13 if !testing.Verbose() { 14 // keep the log level calm 15 logging.SetLevel("panic") 16 } 17 18 code := m.Run() 19 defer os.Exit(code) 20 }