Skip to content

Commit

Permalink
fix: delete changes from test case "without changes"
Browse files Browse the repository at this point in the history
  • Loading branch information
Tennessine699 committed Sep 9, 2024
1 parent 3ed44f0 commit 16ab8f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion integration_tests/handler/contest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,11 @@ func TestEditContest(t *testing.T) {
"204 without change": {
http.StatusNoContent,
mockdata.ContestID3(),
schema.EditContestRequest{},
schema.EditContestRequest{
Duration: &schema.Duration{
Until: &until, // Untilはnilにすると「未定」に変更される
},
},
nil,
},
"400 invalid contestID": {
Expand Down
6 changes: 5 additions & 1 deletion integration_tests/handler/project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,11 @@ func TestEditProject(t *testing.T) {
"204 without changes": {
http.StatusNoContent,
mockdata.ProjectID2(),
schema.EditProjectRequest{},
schema.EditProjectRequest{
Duration: &schema.YearWithSemesterDuration{
Until: duration.Until, // Untilはnilにすると「未定」に変更される
},
},
nil,
},
"400 invalid projectID": {
Expand Down

0 comments on commit 16ab8f6

Please sign in to comment.