mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
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:
parent
4619696036
commit
678d986a4a
2 changed files with 2 additions and 6 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue