Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheikah45 committed Mar 8, 2023
1 parent dcc5e05 commit b5831c9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ private PlayerBean createOrUpdateFromOwnPlayer(@NonNull com.faforever.commons.lo
newPlayer.setUsername(playerInfo.getLogin());
newPlayer.setNote(notesByPlayerId.get(id));
setPlayerSocialStatus(newPlayer);
playersByName.put(newPlayer.getUsername(), newPlayer);
return playerMapper.update(playerInfo, newPlayer);
} else {
return playerMapper.update(playerInfo, knownPlayer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
import javafx.scene.input.ContextMenuEvent;
import javafx.scene.input.MouseButton;
import org.hamcrest.CoreMatchers;
import org.junit.Ignore;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.mockito.ArgumentCaptor;
import org.mockito.InjectMocks;
Expand Down Expand Up @@ -207,7 +207,7 @@ public void testAvatarImageViewHasTooltip() {
}

@Test
@Ignore("Flaky test due to race condition with tooltip installation")
@Disabled("Flaky test due to race condition with tooltip installation")
public void testPlayerNoteTooltip() throws Exception {
defaultUser.setPlayer(PlayerBeanBuilder.create()
.defaultValues()
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/com/faforever/client/mod/ModServiceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
import javafx.collections.ObservableList;
import org.apache.maven.artifact.versioning.ComparableVersion;
import org.hamcrest.Matchers;
import org.junit.Ignore;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
import org.mapstruct.factory.Mappers;
Expand Down Expand Up @@ -181,7 +181,7 @@ public void testPostConstructLoadInstalledMods() {
}

@Test
@Ignore("Flaky Test")
@Disabled("Flaky Test")
public void testDownloadAndInstallMod() throws Exception {
assertThat(instance.getInstalledMods().size(), is(1));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import javafx.scene.layout.FlowPane;
import javafx.scene.layout.Pane;
import javafx.scene.layout.VBox;
import org.junit.Ignore;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.mockito.Mock;
import org.mockito.Spy;
Expand Down Expand Up @@ -305,7 +305,7 @@ public void testOnBackButton() {
}

@Test
@Ignore("Flaky Test")
@Disabled("Flaky Test")
public void testOnSearch() {
JavaFxUtil.runLater(() -> instance.display(new NavigateEvent(NavigationItem.MAP)));
WaitForAsyncUtils.waitForFxEvents();
Expand Down

0 comments on commit b5831c9

Please sign in to comment.