Skip to content

Commit

Permalink
Revert "Potential test fix"
Browse files Browse the repository at this point in the history
This reverts commit cb348aa.
  • Loading branch information
patrickhuie19 committed Nov 8, 2024
1 parent cb34bb3 commit 266a780
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/cmd/shell_local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func TestShell_RunNodeWithPasswords(t *testing.T) {
Config: cfg,
FallbackAPIInitializer: apiPrompt,
Runner: cltest.EmptyRunner{},
AppFactory: cmd.ChainlinkAppFactory{},
AppFactory: cltest.InstanceAppFactory{App: app},
Logger: lggr,
}

Expand Down
2 changes: 1 addition & 1 deletion core/internal/cltest/mocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,10 @@ func NewMockAPIInitializer(t testing.TB) *MockAPIInitializer {
}

func (m *MockAPIInitializer) Initialize(ctx context.Context, orm sessions.BasicAdminUsersORM, lggr logger.Logger) (sessions.User, error) {
m.Count++
if user, err := orm.FindUser(ctx, APIEmailAdmin); err == nil {
return user, err
}
m.Count++
user := MustRandomUser(m.t)
return user, orm.CreateUser(ctx, &user)
}
Expand Down

0 comments on commit 266a780

Please sign in to comment.