Skip to content

Mock :crypt.crypt/2 to pass LegacyAuthenticationPlugTest on Mac OS

  1. I didn't get the point of making send(self(), :reset_password) in the mock and then receiving it in asserts. Furthermore, this assert failed on my computer (No message matching :reset_password after 0ms).
  2. As @feld said, crypt() on macOS only supports DES. So I added :crypt/crypt/2 to mocks to pass the test.
Edited by Sergey Suprunenko

Merge request reports