File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ var ErrDBClosed = errors.New("database is closed")
1616
1717// NewTestDB is a helper function that creates an SQLStore database for testing.
1818func NewTestDB (t * testing.T , clock clock.Clock ) Store {
19- return createStore (t , db .NewTestPostgresV2DB (t ).BaseDB , clock )
19+ return createStore (t , db .NewTestPostgresDB (t ).BaseDB , clock )
2020}
2121
2222// NewTestDBFromPath is a helper function that creates a new SQLStore with a
2323// connection to an existing postgres database for testing.
2424func NewTestDBFromPath (t * testing.T , dbPath string ,
2525 clock clock.Clock ) Store {
2626
27- return createStore (t , db .NewTestPostgresV2DB (t ).BaseDB , clock )
27+ return createStore (t , db .NewTestPostgresDB (t ).BaseDB , clock )
2828}
Original file line number Diff line number Diff line change @@ -56,9 +56,9 @@ func (s *PostgresConfig) DSN(hidePassword bool) string {
5656 s .DBName , sslMode )
5757}
5858
59- // NewTestPostgresV2DB is a helper function that creates a Postgres database for
60- // testing, using the sqldb v2 package's definition of the PostgresStore .
61- func NewTestPostgresV2DB (t * testing.T ) * sqldb.PostgresStore {
59+ // NewTestPostgresDB is a helper function that creates a Postgres database for
60+ // testing.
61+ func NewTestPostgresDB (t * testing.T ) * sqldb.PostgresStore {
6262 t .Helper ()
6363
6464 t .Logf ("Creating new Postgres DB for testing" )
Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ import (
1111
1212// NewTestDB is a helper function that creates an BBolt database for testing.
1313func NewTestDB (t * testing.T , clock clock.Clock ) FirewallDBs {
14- return createStore (t , db .NewTestPostgresV2DB (t ).BaseDB , clock )
14+ return createStore (t , db .NewTestPostgresDB (t ).BaseDB , clock )
1515}
1616
1717// NewTestDBFromPath is a helper function that creates a new BoltStore with a
1818// connection to an existing BBolt database for testing.
1919func NewTestDBFromPath (t * testing.T , _ string , clock clock.Clock ) FirewallDBs {
20- return createStore (t , db .NewTestPostgresV2DB (t ).BaseDB , clock )
20+ return createStore (t , db .NewTestPostgresDB (t ).BaseDB , clock )
2121}
Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ var ErrDBClosed = errors.New("database is closed")
1616
1717// NewTestDB is a helper function that creates an SQLStore database for testing.
1818func NewTestDB (t * testing.T , clock clock.Clock ) Store {
19- return createStore (t , db .NewTestPostgresV2DB (t ).BaseDB , clock )
19+ return createStore (t , db .NewTestPostgresDB (t ).BaseDB , clock )
2020}
2121
2222// NewTestDBFromPath is a helper function that creates a new SQLStore with a
2323// connection to an existing postgres database for testing.
2424func NewTestDBFromPath (t * testing.T , dbPath string ,
2525 clock clock.Clock ) Store {
2626
27- return createStore (t , db .NewTestPostgresV2DB (t ).BaseDB , clock )
27+ return createStore (t , db .NewTestPostgresDB (t ).BaseDB , clock )
2828}
You can’t perform that action at this time.
0 commit comments