Skip to content

Commit 264275f

Browse files
fix: corrected missing test.
1 parent 6fe31bf commit 264275f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

server/matching/src/test/java/meet_at_mensa/matching/service/MatchServiceTests.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,12 @@ void canGetMatch() {
187187
assertNotNull(match, "Value should not be null");
188188

189189
assertEquals(matchID, match.getMatchID(), "MatchIDs should match");
190-
assertEquals(userID, match.getUserID(), "MatchIDs should match");
191-
assertEquals(InviteStatus.UNSENT, match.getStatus(), "MatchIDs should match");
190+
assertEquals(userID, match.getUserID(), "UserIDs should match");
191+
assertTrue(
192+
match.getStatus() == InviteStatus.UNSENT || match.getStatus() == InviteStatus.SENT,
193+
"Match Statuses should be Unsent or Sent"
194+
);
195+
192196

193197
Asserter.assertGroupsAreIdentical(group, match.getGroup());
194198

0 commit comments

Comments
 (0)