chore: prune legacy node backend and mix workflow models
This commit is contained in:
@@ -179,7 +179,13 @@ mod tests {
|
||||
fn captcha_is_one_time() {
|
||||
let store = RegisterCaptchaStore::new();
|
||||
let challenge = store.issue(None);
|
||||
let answer = store.inner.lock().get(&challenge.id).unwrap().answer.clone();
|
||||
let answer = store
|
||||
.inner
|
||||
.lock()
|
||||
.get(&challenge.id)
|
||||
.unwrap()
|
||||
.answer
|
||||
.clone();
|
||||
|
||||
store.verify(&challenge.id, &answer, None).unwrap();
|
||||
assert_eq!(
|
||||
@@ -192,7 +198,13 @@ mod tests {
|
||||
fn captcha_rejects_other_ip() {
|
||||
let store = RegisterCaptchaStore::new();
|
||||
let challenge = store.issue(Some(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1))));
|
||||
let answer = store.inner.lock().get(&challenge.id).unwrap().answer.clone();
|
||||
let answer = store
|
||||
.inner
|
||||
.lock()
|
||||
.get(&challenge.id)
|
||||
.unwrap()
|
||||
.answer
|
||||
.clone();
|
||||
|
||||
assert_eq!(
|
||||
store
|
||||
|
||||
Reference in New Issue
Block a user