File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- package keystore
1+ package pgstore
22
33import (
44 "context"
55
6+ "github.com/smartcontractkit/chainlink-common/keystore"
67 "github.com/smartcontractkit/chainlink-common/pkg/sqlutil"
78)
89
9- var _ Storage = & PgStorage {}
10+ var _ keystore. Storage = & PgStorage {}
1011
1112// PgStorage implements Storage using a Postgres database
1213type PgStorage struct {
Original file line number Diff line number Diff line change 1- package keystore_test
1+ package pgstore_test
22
33import (
44 "database/sql"
55 "testing"
66
77 "github.com/stretchr/testify/require"
88
9- "github.com/smartcontractkit/chainlink-common/keystore"
9+ "github.com/smartcontractkit/chainlink-common/keystore/pgstore "
1010 "github.com/smartcontractkit/chainlink-common/pkg/sqlutil/sqltest"
1111)
1212
@@ -16,7 +16,7 @@ func TestPgStorage(t *testing.T) {
1616 db := sqltest .NewDB (t , sqltest .TestURL (t ))
1717 t .Cleanup (func () { require .NoError (t , db .Close ()) })
1818
19- storage := keystore .NewPgStorage (db , "test" )
19+ storage := pgstore .NewPgStorage (db , "test" )
2020 _ , err := storage .GetEncryptedKeystore (t .Context ())
2121 require .ErrorIs (t , err , sql .ErrNoRows )
2222 require .NoError (t , storage .PutEncryptedKeystore (t .Context (), []byte ("test" )))
You can’t perform that action at this time.
0 commit comments