Rename execution.Storage to Storer to follow Go convention

Interfaces should be named like someone actively doing a thing. Thus,
instead of Storage we use Storer.
This commit is contained in:
sirkrypt0
2021-07-29 16:02:28 +02:00
parent bd14b1e181
commit 4ad470a5c4
4 changed files with 8 additions and 8 deletions

View File

@@ -119,7 +119,7 @@ func (s *ExecuteInteractivelyTestSuite) SetupTest() {
s.manager.On("Return", mock.Anything).Return(nil)
s.runner = &NomadJob{
Storage: execution.NewLocalStorage(),
Storer: execution.NewLocalStorage(),
InactivityTimer: s.timer,
id: tests.DefaultRunnerID,
api: s.apiMock,
@@ -225,7 +225,7 @@ func (s *UpdateFileSystemTestSuite) SetupTest() {
s.timer.On("ResetTimeout").Return()
s.timer.On("TimeoutPassed").Return(false)
s.runner = &NomadJob{
Storage: execution.NewLocalStorage(),
Storer: execution.NewLocalStorage(),
InactivityTimer: s.timer,
id: tests.DefaultRunnerID,
api: s.apiMock,