From 1d99e08ef30ea0916a175c8239523b618ea19827 Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Fri, 27 Aug 2021 08:59:39 -0700 Subject: [PATCH] Add comments. --- state/indexer/sink/psql/psql_test.go | 2 ++ 1 file changed, 2 insertions(+) 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"))