Skip to content

Commit

Permalink
add missing value to config.env for blocking refresh frequency tests
Browse files Browse the repository at this point in the history
add missing value to config.yml for blocking refresh frequency tests
update SessionsManagerMock RequestReadySession method to accept frequency
  • Loading branch information
nickalie committed Dec 6, 2024
1 parent dc09786 commit 9756f0e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/http/routes/strategies_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (s *SessionsManagerMock) RequestSession(names []string, duration time.Durat
return &s.SessionState
}

func (s *SessionsManagerMock) RequestReadySession(ctx context.Context, names []string, duration time.Duration, timeout time.Duration) (*sessions.SessionState, error) {
func (s *SessionsManagerMock) RequestReadySession(ctx context.Context, names []string, duration time.Duration, timeout time.Duration, frequency time.Duration) (*sessions.SessionState, error) {
return &s.SessionState, nil
}

Expand Down
3 changes: 2 additions & 1 deletion cmd/testdata/config.env
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ STRATEGY_DYNAMIC_CUSTOM_THEMES_PATH=/tmp/envvar/themes
STRATEGY_SHOW_DETAILS_BY_DEFAULT=false
STRATEGY_DYNAMIC_DEFAULT_THEME=envvar
STRATEGY_DYNAMIC_DEFAULT_REFRESH_FREQUENCY=2h
STRATEGY_BLOCKING_DEFAULT_TIMEOUT=2h
STRATEGY_BLOCKING_DEFAULT_TIMEOUT=2h
STRATEGY_BLOCKING_DEFAULT_REFRESH_FREQUENCY=2h
3 changes: 2 additions & 1 deletion cmd/testdata/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ strategy:
default-theme: configfile
default-refresh-frequency: 1h
blocking:
default-timeout: 1h
default-timeout: 1h
default-refresh-frequency: 1h

0 comments on commit 9756f0e

Please sign in to comment.