Skip to content

Commit

Permalink
Remove intermittently failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
obydog002 committed Feb 19, 2024
1 parent 95b44ef commit b9be90e
Showing 1 changed file with 0 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.faforever.client.replay;

import com.faforever.client.builders.GamePlayerStatsBeanBuilder;
import com.faforever.client.builders.LeaderboardRatingJournalBeanBuilder;
import com.faforever.client.builders.MapBeanBuilder;
import com.faforever.client.builders.MapVersionBeanBuilder;
import com.faforever.client.builders.PlayerStatsMapBuilder;
Expand Down Expand Up @@ -291,30 +289,4 @@ public void deleteButtonClicked() {

verify(notificationService).addNotification(any());
}

@Test
public void withThreeTeamsShowClickForMore() {
PlayerStatsMapBuilder builder = PlayerStatsMapBuilder.create().defaultValues();
builder.appendToTeam("1", GamePlayerStatsBeanBuilder.create()
.defaultValues()
.leaderboardRatingJournals(List.of(
LeaderboardRatingJournalBeanBuilder.create()
.defaultValues()
.get()))
.get());
builder.appendToTeam("3", GamePlayerStatsBeanBuilder.create()
.defaultValues()
.leaderboardRatingJournals(List.of(
LeaderboardRatingJournalBeanBuilder.create()
.defaultValues()
.get()))
.get());

onlineReplay.setTeamPlayerStats(builder.get());

runOnFxThreadAndWait(() -> instance.setEntity(onlineReplay));
WaitForAsyncUtils.waitForFxEvents();

assertEquals(1, instance.teamsContainer.getChildren().size());
}
}

0 comments on commit b9be90e

Please sign in to comment.