From dcecb494f011cda00be620fa938c35684377c823 Mon Sep 17 00:00:00 2001 From: kjw142857 <122250318+kjw142857@users.noreply.github.com> Date: Wed, 20 Sep 2023 14:24:13 +0800 Subject: [PATCH] Add files via upload (#1004) --- test/cadet/assessments/assessments_test.exs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/cadet/assessments/assessments_test.exs b/test/cadet/assessments/assessments_test.exs index 61800c289..31e4fec60 100644 --- a/test/cadet/assessments/assessments_test.exs +++ b/test/cadet/assessments/assessments_test.exs @@ -435,10 +435,11 @@ defmodule Cadet.AssessmentsTest do unassigned_voting_questions = Assessments.fetch_unassigned_voting_questions() assert Enum.count(unassigned_voting_questions) == 2 - assert Enum.map(unassigned_voting_questions, fn q -> q.question_id end) == [ - closed_question.id, - open_question.id - ] + unassigned_voting_question_ids = + Enum.map(unassigned_voting_questions, fn q -> q.question_id end) + + assert closed_question.id in unassigned_voting_question_ids + assert open_question.id in unassigned_voting_question_ids Assessments.update_final_contest_entries()