From fbe959ae6e82833e4c857ebdc39257beb6b7a60f Mon Sep 17 00:00:00 2001 From: Kristin Laemmert Date: Wed, 26 Sep 2018 15:33:02 -0700 Subject: [PATCH] backend/local: fix panic in tests update the function names in testDelegateBackend to match what was being called in TestLocal_multiStateBackend (matching the test behavior in master) --- backend/local/backend_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/local/backend_test.go b/backend/local/backend_test.go index 6dd0a7c16..29561d6bb 100644 --- a/backend/local/backend_test.go +++ b/backend/local/backend_test.go @@ -182,7 +182,7 @@ var errTestDelegateState = errors.New("State called") var errTestDelegateStates = errors.New("States called") var errTestDelegateDeleteState = errors.New("Delete called") -func (b *testDelegateBackend) State(name string) (statemgr.Full, error) { +func (b *testDelegateBackend) StateMgr(name string) (statemgr.Full, error) { if b.stateErr { return nil, errTestDelegateState } @@ -190,14 +190,14 @@ func (b *testDelegateBackend) State(name string) (statemgr.Full, error) { return s, nil } -func (b *testDelegateBackend) States() ([]string, error) { +func (b *testDelegateBackend) Workspaces() ([]string, error) { if b.statesErr { return nil, errTestDelegateStates } return []string{"default"}, nil } -func (b *testDelegateBackend) DeleteState(name string) error { +func (b *testDelegateBackend) DeleteWorkspace(name string) error { if b.deleteErr { return errTestDelegateDeleteState }