Skip to content

Commit

Permalink
Shuffle competitions in api integration
Browse files Browse the repository at this point in the history
  • Loading branch information
campos20 committed Sep 19, 2020
1 parent d7f71c7 commit d75fedf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion tnoodle-ui/src/test/App.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,6 @@ it("Online user", async () => {
expect(items[items.length - 1].innerHTML).toContain(
`a competitor who already tried ${maxCubes} at a competition. Proceed if you are really certain of it.`
);
console.log();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ object APIIntegrationTest {
fun `test that every upcoming competition produces some output without error`() {
val competitionsLimit = 10
val upcomingRaw = URL("https://www.worldcubeassociation.org/api/v0/competitions/").readText()
val upcomingComps = JsonConfig.SERIALIZER.decodeFromString(ListSerializer(UpcomingCompetition.serializer()), upcomingRaw).take(competitionsLimit)
val upcomingComps = JsonConfig.SERIALIZER.decodeFromString(ListSerializer(UpcomingCompetition.serializer()), upcomingRaw).shuffled().take(competitionsLimit)

val generationDate = LocalDateTime.now()
val testCompCount = upcomingComps.size
Expand Down

0 comments on commit d75fedf

Please sign in to comment.