diff --git a/pkg/witness/publish_checkpoint_test.go b/pkg/witness/publish_checkpoint_test.go index d99d150db..c6453f35e 100644 --- a/pkg/witness/publish_checkpoint_test.go +++ b/pkg/witness/publish_checkpoint_test.go @@ -33,6 +33,7 @@ import ( "github.com/prometheus/client_golang/prometheus/testutil" "github.com/sigstore/rekor/pkg/witness/mockclient" "github.com/sigstore/sigstore/pkg/signature" + "go.uber.org/goleak" ) func TestPublishCheckpoint(t *testing.T) { @@ -317,3 +318,7 @@ func TestPublishCheckpointRedisLatestFailure(t *testing.T) { t.Fatalf("unexpected number of metrics: %2f", res) } } + +func TestMain(m *testing.M) { + goleak.VerifyTestMain(m) +}