fixing rollback test

This commit is contained in:
Chris Hoffman 2018-07-31 22:45:38 -04:00 committed by GitHub
parent aadfccaa6b
commit b229df9cd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ func mockRollback(t *testing.T) (*RollbackManager, *NoopBackend) {
backend := new(NoopBackend)
mounts := new(MountTable)
router := NewRouter()
core, _, _ := TestCoreUnsealed(t)
_, barrier, _ := mockBarrier(t)
view := NewBarrierView(barrier, "logical/")
@ -40,7 +41,7 @@ func mockRollback(t *testing.T) (*RollbackManager, *NoopBackend) {
logger := logging.NewVaultLogger(log.Trace)
rb := NewRollbackManager(logger, mountsFunc, router, context.Background())
rb := NewRollbackManager(context.Background(), logger, mountsFunc, router, core)
rb.period = 10 * time.Millisecond
return rb, backend
}