Add comments.

This commit is contained in:
M. J. Fromberger
2021-08-27 08:59:39 -07:00
parent 35bffbd9c4
commit 1d99e08ef3

View File

@@ -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"))