Fix call to renamed func (#2932)

* Fix call to renamed func

* Remove unused function

Co-authored-by: Zach Wasserman <zach@fleetdm.com>
This commit is contained in:
Martin Angers 2021-11-15 15:54:31 -05:00 committed by GitHub
parent 4619696036
commit 678d986a4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View file

@ -637,10 +637,6 @@ func newPassphraseHandler() *passphraseHandler {
return &passphraseHandler{cache: make(map[string][]byte)}
}
func (p *passphraseHandler) clearCache(role string) {
delete(p.cache, role)
}
func (p *passphraseHandler) getPassphrase(role string, confirm bool) ([]byte, error) {
// Check cache
if pass, ok := p.cache[role]; ok {

View file

@ -297,7 +297,7 @@ func TestCommit(t *testing.T) {
initialRoots := getRoots(t, tmpDir)
commit, _, err := prepareCommitRollback(tmpDir)
commit, _, err := startRotatePseudoTx(tmpDir)
require.NoError(t, err)
repo, err := openRepo(tmpDir)
@ -336,7 +336,7 @@ func TestRollback(t *testing.T) {
initialRoots := getRoots(t, tmpDir)
_, rollback, err := prepareCommitRollback(tmpDir)
_, rollback, err := startRotatePseudoTx(tmpDir)
require.NoError(t, err)
repo, err := openRepo(tmpDir)