if response.status() == 200 {
assert_eq!(response.text().unwrap(), "OK");
break;
}
}
if attempt == 100 {
panic!("Server did not respond to status check",);
}
thread::sleep(Duration::from_millis(500));
}
assert_regex_match!(
reqwest::blocking::get(format!("http://127.0.0.1:{port}/inscriptions"))
.unwrap()
.text()
.unwrap(),
format!(".*(<a href=/inscription/.*){{{}}}.*", examples.len())
);
}