diff --git a/src/EvoSC.Common/Services/MapService.cs b/src/EvoSC.Common/Services/MapService.cs index 349599bd7..34dc5c5a9 100644 --- a/src/EvoSC.Common/Services/MapService.cs +++ b/src/EvoSC.Common/Services/MapService.cs @@ -75,9 +75,6 @@ public async Task AddMapAsync(MapStream mapStream) await _matchSettings.EditMatchSettingsAsync(Path.GetFileNameWithoutExtension(_config.Path.DefaultMatchSettings), builder => builder.AddMap($"EvoSC/{fileName}")); - /*await _serverClient.Remote.InsertMapAsync($"EvoSC/{fileName}"); - await _serverClient.Remote.SaveMatchSettingsAsync($"MatchSettings/{_config.Path.DefaultMatchSettings}"); */ - return map; } diff --git a/tests/EvoSC.Common.Tests/Services/MapServiceTests.cs b/tests/EvoSC.Common.Tests/Services/MapServiceTests.cs index 6e48ca9c3..06ba598b3 100644 --- a/tests/EvoSC.Common.Tests/Services/MapServiceTests.cs +++ b/tests/EvoSC.Common.Tests/Services/MapServiceTests.cs @@ -151,8 +151,6 @@ public async Task Add_Map_Returns_Map() var createdMap = await _mapService.AddMapAsync(mapStream); - _server.Remote.Verify(m => m.InsertMapAsync("EvoSC/" + mapMetadata.MapUid + ".Map.Gbx")); - Assert.Equal(MapProviders.ManiaExchange, createdMap.ExternalMapProvider); Assert.Equal(map.ExternalId, createdMap.ExternalId); Assert.Equal(map.Uid, createdMap.Uid); @@ -209,8 +207,6 @@ public async Task Add_Map_New_Map_Version_Returns_Map() var updatedMap = await _mapService.AddMapAsync(mapStream); - _server.Remote.Verify(m => m.InsertMapAsync("EvoSC/" + mapMetadata.MapUid + ".Map.Gbx")); - Assert.NotEqual(mapMetadata.ExternalVersion, updatedMap.ExternalVersion); Assert.Equal(MapProviders.ManiaExchange, updatedMap.ExternalMapProvider); Assert.Equal(map.ExternalId, updatedMap.ExternalId); @@ -323,8 +319,6 @@ public async Task Add_Maps_Return_Maps() var createdMaps = await _mapService.AddMapsAsync(new List { mapStream, mapStream2 }); - _server.Remote.Verify(m => m.InsertMapAsync(It.IsAny()), Times.Exactly(2)); - Assert.Equal(2, createdMaps.Count()); }