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")
16
16
17
17
// NewTestDB is a helper function that creates an SQLStore database for testing.
18
18
func 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 )
20
20
}
21
21
22
22
// NewTestDBFromPath is a helper function that creates a new SQLStore with a
23
23
// connection to an existing postgres database for testing.
24
24
func NewTestDBFromPath (t * testing.T , dbPath string ,
25
25
clock clock.Clock ) Store {
26
26
27
- return createStore (t , db .NewTestPostgresV2DB (t ).BaseDB , clock )
27
+ return createStore (t , db .NewTestPostgresDB (t ).BaseDB , clock )
28
28
}
Original file line number Diff line number Diff line change @@ -56,9 +56,9 @@ func (s *PostgresConfig) DSN(hidePassword bool) string {
56
56
s .DBName , sslMode )
57
57
}
58
58
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 {
62
62
t .Helper ()
63
63
64
64
t .Logf ("Creating new Postgres DB for testing" )
Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ import (
11
11
12
12
// NewTestDB is a helper function that creates an BBolt database for testing.
13
13
func 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 )
15
15
}
16
16
17
17
// NewTestDBFromPath is a helper function that creates a new BoltStore with a
18
18
// connection to an existing BBolt database for testing.
19
19
func 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 )
21
21
}
Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ var ErrDBClosed = errors.New("database is closed")
16
16
17
17
// NewTestDB is a helper function that creates an SQLStore database for testing.
18
18
func 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 )
20
20
}
21
21
22
22
// NewTestDBFromPath is a helper function that creates a new SQLStore with a
23
23
// connection to an existing postgres database for testing.
24
24
func NewTestDBFromPath (t * testing.T , dbPath string ,
25
25
clock clock.Clock ) Store {
26
26
27
- return createStore (t , db .NewTestPostgresV2DB (t ).BaseDB , clock )
27
+ return createStore (t , db .NewTestPostgresDB (t ).BaseDB , clock )
28
28
}
You can’t perform that action at this time.
0 commit comments