mirror of
https://github.com/mainmatter/100-exercises-to-learn-rust
synced 2024-12-26 21:58:49 +01:00
Fix tests
This commit is contained in:
parent
0e38fa8ca7
commit
04c4e55b37
2 changed files with 4 additions and 4 deletions
|
@ -13,13 +13,13 @@ fn works() {
|
|||
|
||||
let ticket = client.get(ticket_id).unwrap().unwrap();
|
||||
{
|
||||
let ticket = ticket.lock().unwrap();
|
||||
let mut ticket = ticket.lock().unwrap();
|
||||
assert_eq!(ticket_id, ticket.id);
|
||||
assert_eq!(ticket.status, Status::ToDo);
|
||||
assert_eq!(ticket.title, draft.title);
|
||||
assert_eq!(ticket.description, draft.description);
|
||||
|
||||
*ticket.status = Status::InProgress;
|
||||
ticket.status = Status::InProgress;
|
||||
}
|
||||
|
||||
let ticket = client.get(ticket_id).unwrap().unwrap();
|
||||
|
|
|
@ -25,7 +25,7 @@ fn works() {
|
|||
|
||||
let ticket = client.get(ticket_id).unwrap().unwrap();
|
||||
{
|
||||
let ticket = ticket.write().unwrap();
|
||||
*ticket.status = Status::InProgress;
|
||||
let mut ticket = ticket.write().unwrap();
|
||||
ticket.status = Status::InProgress;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue