From 11c92ec4e2ce5bfd015e03b1a8c85232711fed6f Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Wed, 25 Aug 2021 11:25:07 -0700 Subject: [PATCH] Put side-effecting imports in their own section --- state/indexer/sink/psql/psql_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/state/indexer/sink/psql/psql_test.go b/state/indexer/sink/psql/psql_test.go index da9bd8d69..67615f2c7 100644 --- a/state/indexer/sink/psql/psql_test.go +++ b/state/indexer/sink/psql/psql_test.go @@ -13,7 +13,6 @@ import ( sq "github.com/Masterminds/squirrel" schema "github.com/adlio/schema" proto "github.com/gogo/protobuf/proto" - _ "github.com/lib/pq" dockertest "github.com/ory/dockertest" "github.com/ory/dockertest/docker" "github.com/stretchr/testify/assert" @@ -21,6 +20,9 @@ import ( abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/state/indexer" "github.com/tendermint/tendermint/types" + + // Register the Postgres database driver. + _ "github.com/lib/pq" ) // Verify that the type satisfies the EventSink interface.