Make test more lenient, as it seems Solr changed its error reporting format a bit to include

the full stack trace.  Eventually I think the exception message and stack trace should be separated
in the response so a client could pull out just the message easily.



git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@504076 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2007-02-06 11:11:47 +00:00
parent 844f80c67d
commit 60766a8813
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ class ServerTest < Test::Unit::TestCase
request = Solr::Request::AddDocument.new(doc)
response = @connection.send(request)
assert_equal false, response.ok?
assert_equal "ERROR:unknown field 'bogus'", response.status_message
assert_match "ERROR:unknown field 'bogus'", response.status_message
end
def test_index_info