Fix beatmap conversion tests not properly constructing decoder

This commit is contained in:
smoogipoo 2018-03-05 14:53:57 +09:00
parent d3092a3003
commit 49b8670dfc
1 changed files with 1 additions and 2 deletions

View File

@ -109,10 +109,9 @@ private ConvertResult read(string name)
private Beatmap getBeatmap(string name)
{
var decoder = new LegacyBeatmapDecoder();
using (var resStream = openResource($"{resource_namespace}.{name}.osu"))
using (var stream = new StreamReader(resStream))
return decoder.DecodeBeatmap(stream);
return Decoder.GetDecoder(stream).DecodeBeatmap(stream);
}
private Stream openResource(string name)