Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

Made use of the constant corresponding to the hard-coded value.

luccioman4585a60d7e48
diff --git a/test/java/net/yacy/search/snippet/TextSnippetTest.java b/test/java/net/yacy/search/snippet/TextSnippetTest.java
index 5e703d3f8..f7e6b579d 100644
--- a/test/java/net/yacy/search/snippet/TextSnippetTest.java
+++ b/test/java/net/yacy/search/snippet/TextSnippetTest.java
@@ -9,6 +9,7 @@ import net.yacy.cora.storage.HandleSet;
import net.yacy.cora.util.CommonPattern;
import net.yacy.kelondro.data.meta.URIMetadataNode;
import net.yacy.search.query.QueryGoal;
+import net.yacy.search.query.SearchEvent;
import net.yacy.search.schema.CollectionSchema;
import org.apache.solr.common.SolrDocument;
import static org.junit.Assert.*;
@@ -21,7 +22,7 @@ public class TextSnippetTest {
// declare some required parameter
final CacheStrategy cacheStrategy = CacheStrategy.CACHEONLY;
final boolean pre = true;
- final int snippetMaxLength = 220;
+ final int snippetMaxLength = SearchEvent.SNIPPET_MAX_LENGTH;
final boolean reindexing = false;
SolrDocument doc;