From 7a1135de0fd33821a9f455fe68c991a4c19c06f2 Mon Sep 17 00:00:00 2001 From: Andrea Fazzi Date: Fri, 7 Jul 2023 18:15:09 +0200 Subject: [PATCH] Test store.UpdateQuiz --- store/file/file_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/store/file/file_test.go b/store/file/file_test.go index 0f890c0..cda5992 100644 --- a/store/file/file_test.go +++ b/store/file/file_test.go @@ -127,13 +127,13 @@ func (t *testSuite) TestUpdateQuiz() { }, }) - t.Nil(err, "The quiz to update should be created without issue") + t.Nil(err, "The quiz to be updated should be created without issue") if !t.Failed() { _, err = store.UpdateQuiz( &client.CreateUpdateQuizRequest{ Quiz: &client.Quiz{ - Question: &client.Question{Text: "Newly created question text."}, + Question: &client.Question{Text: "Updated question text."}, Answers: []*client.Answer{ {Text: "Answer 1", Correct: true}, {Text: "Answer 2", Correct: false}, @@ -144,6 +144,7 @@ func (t *testSuite) TestUpdateQuiz() { }, quiz.ID) } } + } func createQuizOnDisk(store *FileProboCollectorStore, req *client.CreateUpdateQuizRequest) (*models.Quiz, error) {