Open hanzei opened 1 year ago
The monkey patching in https://github.com/mattermost/mattermost-plugin-servicenow/blob/aa24737743fafb92884793a056c03052feb26cc3/server/plugin/api_test.go#L46-L48 seems to be jenky. 3/5 that it should be replaced by a proper mocked function.
A lof of the test in
/server/plugin/api_test.go
fail with a NPE when trying to get the user in https://github.com/mattermost/mattermost-plugin-servicenow/blob/aa24737743fafb92884793a056c03052feb26cc3/server/plugin/user.go#L86.E.g.
TestAPISearchRecordsInServiceNow
fails with: