diff --git a/state/indexer/sink/psql/psql_test.go b/state/indexer/sink/psql/psql_test.go index cee7c6ca2..2e1610a19 100644 --- a/state/indexer/sink/psql/psql_test.go +++ b/state/indexer/sink/psql/psql_test.go @@ -275,6 +275,8 @@ func verifyNotImplemented(t *testing.T, label string, f func() (bool, error)) { assert.Equal(t, want, err.Error()) } +// mustSetupDB initializes the database and populates the shared globals used +// by the test. The caller is responsible for tearing down the pool. func mustSetupDB(t *testing.T) *dockertest.Pool { t.Helper() pool, err := dockertest.NewPool(os.Getenv("DOCKER_URL"))