fix tests again
This commit is contained in:
parent
fd6dc1fe5b
commit
0f7cbbf096
src/login
@ -677,10 +677,10 @@ mod test {
|
|||||||
username: "testuser".to_owned(),
|
username: "testuser".to_owned(),
|
||||||
password: bcrypt::hash("mypassword", 5).unwrap(),
|
password: bcrypt::hash("mypassword", 5).unwrap(),
|
||||||
guildcard: 0,
|
guildcard: 0,
|
||||||
|
banned_until: None,
|
||||||
|
muted_until: None,
|
||||||
|
created_at: chrono::Utc::now(),
|
||||||
team_id: None,
|
team_id: None,
|
||||||
banned: false,
|
|
||||||
muted_until: SystemTime::now(),
|
|
||||||
created_at: SystemTime::now(),
|
|
||||||
flags: 0,
|
flags: 0,
|
||||||
});
|
});
|
||||||
server.clients.insert(ClientId(5), clientstate);
|
server.clients.insert(ClientId(5), clientstate);
|
||||||
@ -721,9 +721,9 @@ mod test {
|
|||||||
password: bcrypt::hash("qwer", 5).unwrap(),
|
password: bcrypt::hash("qwer", 5).unwrap(),
|
||||||
guildcard: 3,
|
guildcard: 3,
|
||||||
team_id: None,
|
team_id: None,
|
||||||
banned: false,
|
banned_until: None,
|
||||||
muted_until: SystemTime::now(),
|
muted_until: None,
|
||||||
created_at: SystemTime::now(),
|
created_at: chrono::Utc::now(),
|
||||||
flags: 0,
|
flags: 0,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -186,9 +186,9 @@ mod test {
|
|||||||
password: bcrypt::hash("mypassword", 5).unwrap(),
|
password: bcrypt::hash("mypassword", 5).unwrap(),
|
||||||
guildcard: 0,
|
guildcard: 0,
|
||||||
team_id: None,
|
team_id: None,
|
||||||
banned: false,
|
banned_until: None,
|
||||||
muted_until: SystemTime::now(),
|
muted_until: None,
|
||||||
created_at: SystemTime::now(),
|
created_at: chrono::Utc::now(),
|
||||||
flags: 0,
|
flags: 0,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -270,9 +270,9 @@ mod test {
|
|||||||
password: bcrypt::hash("notpassword", 5).unwrap(),
|
password: bcrypt::hash("notpassword", 5).unwrap(),
|
||||||
guildcard: 0,
|
guildcard: 0,
|
||||||
team_id: None,
|
team_id: None,
|
||||||
banned: false,
|
banned_until: None,
|
||||||
muted_until: SystemTime::now(),
|
muted_until: None,
|
||||||
created_at: SystemTime::now(),
|
created_at: chrono::Utc::now(),
|
||||||
flags: 0,
|
flags: 0,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -315,9 +315,9 @@ mod test {
|
|||||||
password: bcrypt::hash("mypassword", 5).unwrap(),
|
password: bcrypt::hash("mypassword", 5).unwrap(),
|
||||||
guildcard: 0,
|
guildcard: 0,
|
||||||
team_id: None,
|
team_id: None,
|
||||||
banned: true,
|
banned_until: Some(chrono::Utc::now() + chrono::Duration::days(1)),
|
||||||
muted_until: SystemTime::now(),
|
muted_until: None,
|
||||||
created_at: SystemTime::now(),
|
created_at: chrono::Utc::now(),
|
||||||
flags: 0,
|
flags: 0,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user