Add #[ignore] to test_parser()

async
Manos Pitsidianakis 2020-05-29 22:21:12 +03:00
parent 9703b39a40
commit 960d660786
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
2 changed files with 4 additions and 5 deletions

View File

@ -622,15 +622,14 @@ named!(pub parse_command<Action>,
);
#[test]
#[ignore]
fn test_parser() {
use std::io::{self, Read};
let mut state: Vec<Token> = vec![];
let mut buffer = String::new();
use std::io;
let mut input = String::new();
loop {
input.clear();
match io::stdin().read_line(&mut input) {
Ok(n) => {
Ok(_n) => {
let mut sugg = Default::default();
//print!("{}", input);
for (_tags, desc, tokens) in COMMAND_COMPLETION.iter() {

View File

@ -364,7 +364,7 @@ fn test_rate_limit() {
let mut rt = RateLimit::new(1, 3);
std::thread::sleep(std::time::Duration::from_millis(2000));
let (lock, cvar) = &*pair;
let mut started = lock.lock().unwrap();
let started = lock.lock().unwrap();
let result = cvar
.wait_timeout(started, std::time::Duration::from_millis(100))
.unwrap();