You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-29 22:01:14 +03:00
Fix policy test
This commit is contained in:
@ -216,19 +216,19 @@ mod tests {
|
||||
let mut policy = factory.instantiate().await.unwrap();
|
||||
|
||||
let res = policy
|
||||
.evaluate_register("hello", "hello@example.com", "hunter2")
|
||||
.evaluate_register("hello", "hunter2", "hello@example.com")
|
||||
.await
|
||||
.unwrap();
|
||||
assert!(!res.valid());
|
||||
|
||||
let res = policy
|
||||
.evaluate_register("hello", "hello@foo.element.io", "hunter2")
|
||||
.evaluate_register("hello", "hunter2", "hello@foo.element.io")
|
||||
.await
|
||||
.unwrap();
|
||||
assert!(res.valid());
|
||||
|
||||
let res = policy
|
||||
.evaluate_register("hello", "hello@staging.element.io", "hunter2")
|
||||
.evaluate_register("hello", "hunter2", "hello@staging.element.io")
|
||||
.await
|
||||
.unwrap();
|
||||
assert!(!res.valid());
|
||||
|
Reference in New Issue
Block a user