lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject svn commit: r504076 - /lucene/solr/trunk/client/ruby/solrb/test/functional/server_test.rb
Date Tue, 06 Feb 2007 11:11:48 GMT
Author: ehatcher
Date: Tue Feb  6 03:11:47 2007
New Revision: 504076

URL: http://svn.apache.org/viewvc?view=rev&rev=504076
Log:
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.


Modified:
    lucene/solr/trunk/client/ruby/solrb/test/functional/server_test.rb

Modified: lucene/solr/trunk/client/ruby/solrb/test/functional/server_test.rb
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/client/ruby/solrb/test/functional/server_test.rb?view=diff&rev=504076&r1=504075&r2=504076
==============================================================================
--- lucene/solr/trunk/client/ruby/solrb/test/functional/server_test.rb (original)
+++ lucene/solr/trunk/client/ruby/solrb/test/functional/server_test.rb Tue Feb  6 03:11:47
2007
@@ -139,7 +139,7 @@
     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



Mime
View raw message