1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-27 10:39:03 +02:00

update actix and actix-web

This commit is contained in:
Nikolay Kim
2019-03-29 11:31:48 -07:00
parent 55fbdf1d00
commit 6d90615e48
7 changed files with 146 additions and 179 deletions

View File

@ -1,16 +1,12 @@
extern crate actix;
extern crate actix_redis;
#[macro_use]
extern crate redis_async;
extern crate env_logger;
extern crate futures;
use actix::prelude::*;
use actix_redis::{Command, Error, RedisActor, RespValue};
use futures::Future;
#[test]
fn test_error_connect() {
fn test_error_connect() -> std::io::Result<()> {
let sys = System::new("test");
let addr = RedisActor::start("localhost:54000");
@ -27,11 +23,11 @@ fn test_error_connect() {
})
});
sys.run();
sys.run()
}
#[test]
fn test_redis() {
fn test_redis() -> std::io::Result<()> {
env_logger::init();
let sys = System::new("test");
@ -63,5 +59,5 @@ fn test_redis() {
})
});
sys.run();
sys.run()
}