Skip to content

Commit

Permalink
Lucene.Net.Classification.KNearestNeighborClassifierTest::TestPerform…
Browse files Browse the repository at this point in the history
…ance(): Ignore in net461, since it runs a bit slow in that environment.
  • Loading branch information
NightOwl888 committed Nov 19, 2021
1 parent 5a40190 commit 34aedf0
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
Expand Down Expand Up @@ -43,10 +43,14 @@ public void TestBasicUsageWithQuery()
CheckCorrectClassification(new KNearestNeighborClassifier(1), TECHNOLOGY_INPUT, TECHNOLOGY_RESULT, new MockAnalyzer(Random), textFieldName, categoryFieldName, new TermQuery(new Term(textFieldName, "it")));
}

#if NET461
[Ignore("LUCENENET: We don't care if this fails on .NET Standard 2.0/.NET 4.6.1.")]
#endif
[Test]
public void TestPerformance()
{
CheckPerformance(new KNearestNeighborClassifier(100), new MockAnalyzer(Random), categoryFieldName);
}

}
}

0 comments on commit 34aedf0

Please sign in to comment.