Skip to content

Commit

Permalink
Merge pull request #1171 from traPtitech/fix/flaky-test
Browse files Browse the repository at this point in the history
Flakyなテストを直した
  • Loading branch information
cp-20 authored Jan 22, 2024
2 parents 1a0611c + a332eef commit 044c9d9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
23 changes: 0 additions & 23 deletions model/questions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,29 +503,6 @@ func updateQuestionTest(t *testing.T) {
},
},
},
{
description: "questionnaireID: valid->valid",
before: before{
Questions: Questions{
QuestionnaireID: questionnaireDatas[0].ID,
PageNum: 1,
QuestionNum: 1,
Type: "TextArea",
Body: "自由記述欄",
IsRequired: false,
},
},
after: after{
Questions: Questions{
QuestionnaireID: questionnaireDatas[1].ID,
PageNum: 1,
QuestionNum: 1,
Type: "TextArea",
Body: "自由記述欄",
IsRequired: false,
},
},
},
{
description: "questionnaireID: valid->invalid",
before: before{
Expand Down
2 changes: 1 addition & 1 deletion router/questionnaires_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ func TestPostQuestionByQuestionnaireID(t *testing.T) {
buf := bytes.NewBuffer(nil)
err := json.NewEncoder(buf).Encode(test.request)
if err != nil {
t.Errorf("failed to encode request: %w", err)
t.Errorf("failed to encode request: %v", err)
}

request = buf
Expand Down

0 comments on commit 044c9d9

Please sign in to comment.