logical/framework: rollback needs to have access to request for storage

This commit is contained in:
Mitchell Hashimoto
2015-03-21 11:03:59 +01:00
parent e7648877c5
commit c9e64725d7
2 changed files with 11 additions and 4 deletions

View File

@@ -189,7 +189,7 @@ func TestBackendHandleRequest_revoke(t *testing.T) {
func TestBackendHandleRequest_rollback(t *testing.T) {
var called uint32
callback := func(kind string, data interface{}) bool {
callback := func(req *logical.Request, kind string, data interface{}) bool {
if data == "foo" {
atomic.AddUint32(&called, 1)
}
@@ -224,7 +224,7 @@ func TestBackendHandleRequest_rollback(t *testing.T) {
func TestBackendHandleRequest_rollbackMinAge(t *testing.T) {
var called uint32
callback := func(kind string, data interface{}) bool {
callback := func(req *logical.Request, kind string, data interface{}) bool {
if data == "foo" {
atomic.AddUint32(&called, 1)
}