Skip to content

Commit

Permalink
MM-57354: Fetch static assets (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
agnivade authored Mar 21, 2024
1 parent f5c1d33 commit ffe3e69
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion loadtest/control/simulcontroller/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ func (c *SimulController) reload(full bool) control.UserActionResponse {
if err := c.connect(); err != nil {
return control.UserActionResponse{Err: control.NewUserError(err)}
}
if resp := control.FetchStaticAssets(c.user); resp.Err != nil {
return resp
}
}

// A full reload always calls GET /api/v4/users?page=0&per_page=100,
Expand Down Expand Up @@ -132,7 +135,7 @@ func (c *SimulController) loginOrSignUp(u user.User) control.UserActionResponse
c.status <- c.newInfoStatus(resp.Info)
return c.login(u)
}
return resp
return control.FetchStaticAssets(u)
}

func (c *SimulController) login(u user.User) control.UserActionResponse {
Expand Down

0 comments on commit ffe3e69

Please sign in to comment.