Skip to content

Commit

Permalink
fixed the test?
Browse files Browse the repository at this point in the history
  • Loading branch information
nbollis committed Aug 20, 2024
1 parent 71eb360 commit 807e02b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MetaMorpheus/Test/SpectralRecoveryTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ public static void MiniClassicSearchEngineTest()
[Test]
public static void SpectralWriterTest()
{
foreach (var specLibPath in Directory.GetFiles(outputFolder, "*.msp", SearchOption.AllDirectories))
File.Delete(specLibPath);

PostSearchAnalysisTask postSearchTask = new PostSearchAnalysisTask()
{
Expand Down Expand Up @@ -377,7 +379,7 @@ public static void SpectralWriterTest()
postSearchTask.Run();

var libraryList = Directory.GetFiles(path, "*.*", SearchOption.AllDirectories);
string updateLibraryPath = libraryList.First(p => p.Contains("SpectralLibrary") && !p.Contains(matchingvalue)).ToString();
string updateLibraryPath = libraryList.First(p => p.Contains("updateSpectralLibrary") && !p.Contains(matchingvalue)).ToString();
var updatedLibraryWithoutDecoy = new SpectralLibrary(new List<string> { Path.Combine(path, updateLibraryPath) });
Assert.That(updatedLibraryWithoutDecoy.TryGetSpectrum("EESGKPGAHVTVK", 2, out spectrum));

Expand Down

0 comments on commit 807e02b

Please sign in to comment.