Skip to content

Commit

Permalink
test: fix virtual contests e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
southball committed Jul 7, 2020
1 parent 39eb684 commit 95278d2
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions atcoder-problems-backend/tests/test_server_e2e_virtual_contest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,17 +203,19 @@ async fn test_virtual_contest() -> Result<()> {
.await?;
assert_eq!(
response,
json!(
{
"owner_user_id": "0",
"duration_second": 2,
"start_epoch_second": 1,
"memo": "contest memo",
"title": "contest title",
"id": format!("{}", contest_id),
"participants": ["atcoder_user1"],
json!({
"info": {
"owner_user_id": "0",
"duration_second": 2,
"start_epoch_second": 1,
"memo": "contest memo",
"title": "contest title",
"id": format!("{}", contest_id),
"mode": null,
"is_public": true,
},
"problems": [{"id":"problem_1", "point":100, "order":null}, {"id": "problem_2", "point":null, "order":null}],
"mode":null,
"participants": ["atcoder_user1"],
})
);

Expand Down

0 comments on commit 95278d2

Please sign in to comment.