github.com/quay/claircore@v1.5.28/datastore/postgres/main_test.go (about) 1 package postgres 2 3 import ( 4 "os" 5 "testing" 6 7 "github.com/quay/claircore/test/integration" 8 ) 9 10 func TestMain(m *testing.M) { 11 var c int 12 defer func() { os.Exit(c) }() 13 defer integration.DBSetup()() 14 c = m.Run() 15 }