1
0
mirror of https://github.com/actix/actix-website synced 2025-01-22 16:15:56 +01:00

Include proper import/use example in testing docs, unit test section. (#217)

This commit is contained in:
Rokas Muningis 2021-02-28 21:31:00 +02:00 committed by GitHub
parent 56c5cbe615
commit 501d52b485
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ fn main() {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use super::*; use super::*;
use actix_web::test; use actix_web::{http, test};
#[actix_rt::test] #[actix_rt::test]
async fn test_index_ok() { async fn test_index_ok() {