Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sebpet182 committed Mar 3, 2024
1 parent 32bdcd6 commit c162bd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private boolean isTrackAvailable(TrackSimplified ts) {
CountryCode userMarket = userService.getMarketOfCurrentUser();
CountryCode[] availableMarkets = ts.getAvailableMarkets();
if (availableMarkets == null) {
// idk if this is the true implication
// Hotfix because for some reason this endpoint only returns null anymore
return true;
}
return Arrays.asList(availableMarkets).contains(userMarket);
Expand Down
2 changes: 2 additions & 0 deletions src/test/java/spotify/remap/test/RemappingTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import spotify.bot.filter.remapper.Remapper.Action;
import spotify.bot.filter.remapper.RemixRemapper;
import spotify.bot.filter.remapper.RereleaseRemapper;
import spotify.bot.properties.FeatureControl;
import spotify.bot.util.DiscoveryBotLogger;
import spotify.bot.util.data.AlbumGroupExtended;
import spotify.config.SpotifyApiConfig;
Expand All @@ -58,6 +59,7 @@
PlaylistStoreConfig.class,
BlacklistService.class,
DatabaseService.class,
FeatureControl.class,
SpringPortConfig.class,
SpotifyDiscoveryBot.SpotifyDiscoveryBotSettings.class

Expand Down

0 comments on commit c162bd7

Please sign in to comment.