From 34aedf03beda062d856a6f7e5b18a3de243d57e0 Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Fri, 19 Nov 2021 07:37:31 +0700 Subject: [PATCH] Lucene.Net.Classification.KNearestNeighborClassifierTest::TestPerformance(): Ignore in net461, since it runs a bit slow in that environment. --- .../KNearestNeighborClassifierTest.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Lucene.Net.Tests.Classification/KNearestNeighborClassifierTest.cs b/src/Lucene.Net.Tests.Classification/KNearestNeighborClassifierTest.cs index 87f3f4f6e7..93238f9ebc 100644 --- a/src/Lucene.Net.Tests.Classification/KNearestNeighborClassifierTest.cs +++ b/src/Lucene.Net.Tests.Classification/KNearestNeighborClassifierTest.cs @@ -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. @@ -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); } + } } \ No newline at end of file