Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blacelle committed Sep 13, 2024
1 parent 6e64db5 commit 3c79e51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,11 @@
* @author Benoit Lacelle
* @see 'TestTSPLifecycle'
*/
// Should this move to `monolith` module?
@ExtendWith(SpringExtension.class)
@SpringBootTest(classes = KumiteServerApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@ActiveProfiles({ IKumiteSpringProfiles.P_DEFAULT, IKumiteSpringProfiles.P_FAKE_PLAYER, })
@TestPropertySource(properties = { "kumite.random.seed=123",
"kumite.server.base-url=http://localhost:LocalServerPort",
"kumite.random.seed=123" })
@ActiveProfiles({ IKumiteSpringProfiles.P_UNSAFE_SERVER, IKumiteSpringProfiles.P_FAKE_PLAYER, })
@TestPropertySource(
properties = { "kumite.random.seed=123", "kumite.server.base-url=http://localhost:LocalServerPort" })
@Slf4j
public class TestTSPLifecycleThroughRouter {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public void testSearchContests() {
.expectBodyList(ContestMetadataRaw.class)
.value(contests -> {
Assertions.assertThat(contests)
.hasSize(2)
.hasSizeGreaterThanOrEqualTo(2)

.anySatisfy(contest -> {
Assertions.assertThat(contest.getDynamicMetadata().isGameOver()).isFalse();
Expand Down

0 comments on commit 3c79e51

Please sign in to comment.