You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Kshitij-Katiyar This is where much of the functionality was added in this PR. I'm thinking we can test this function and `CheckUserConnected` directly. What do you think?
We basically want to emulate this in a test since this is the code that is applied throughout the PR:
if!c.tokenHelpers.CheckUserConnected(c.mattermostUserID) {
c.Logger.Warnf(LogUserInactive, c.mattermostUserID)
returnnil, errors.New(ErrorUserInactive)
}
err:=someCallToAPI// this can be whatever we want in the testiferr!=nil {
c.tokenHelpers.DisconnectUserFromStoreIfNecessary(err, c.mattermostUserID)
We can use a "real" KV store in the test with one of the following strategies:
We basically want to emulate this in a test since this is the code that is applied throughout the PR:
We can use a "real" KV store in the test with one of the following strategies:
Originally posted by @mickmister in #256 (comment)
The text was updated successfully, but these errors were encountered: