검색 사양 실패

6568 단어 asari
4

묘사

규범을 실행할 때 다음과 같은 고장이 발생했습니다.또 누가 통과했는지 확인할 수 있을까요?만약 그렇다면 나는 깊이 연구하여 내 쪽의 문제점을 찾아낼 것이다. 그러나 이것은 단지 지오를 정리하는 것과 관련된 작은 일일 뿐이라고 의심한다
.................................................................F

Failures:

  1) Asari geography searching builds a proper query string
     Failure/Error: HTTParty.should_receive(:get).with("http://search-testdomain.us-east-1.cloudsearch.amazonaws.com/2011-02-01/search?q=&bq=%28and+lat%3A2505771415..2506771417+lng%3A111275735..111322958%29&size=10")
       Double received :get with unexpected arguments
         expected: ("http://search-testdomain.us-east-1.cloudsearch.amazonaws.com/2011-02-01/search?q=&bq=%28and+lat%3A2505771415..2506771417+lng%3A111275735..111322958%29&size=10")
              got: ("http://search-testdomain.us-east-1.cloudsearch.amazonaws.com/2011-02-01/search?q=&bq=%28and+lat%3A2505771415..2506771417+lng%3A2358260777..2359261578%29&size=10")
     # ./spec/search_spec.rb:149:in `block (3 levels) in <top (required)>'

Finished in 0.04652 seconds
66 examples, 1 failure

Failed examples:

rspec ./spec/search_spec.rb:148 # Asari geography searching builds a proper query string

토론 #1

제출 45133f694cede9cdd33c2015daec042a85f84b10부터
Failures:

  1) Asari updating the index converts Time, DateTime, and Date fields to timestamp integers for rankability
     Failure/Error: HTTParty.should_receive(:post).with("http://doc-testdomain.us-east-1.cloudsearch.amazonaws.com/2011-02-01/documents/batch", { :body => [{ "type" => "add", "id" => "1", "version" => 1, "lang" => "en", "fields" => { :time => 1333263600, :datetime => 1333238400, :date => 1333252800 }}].to_json, :headers => { "Content-Type" => "application/json"}})
       Double received :post with unexpected arguments
         expected: ("http://doc-testdomain.us-east-1.cloudsearch.amazonaws.com/2011-02-01/documents/batch", {:body=>"[{\"type\":\"add\",\"id\":\"1\",\"version\":1,\"lang\":\"en\",\"fields\":{\"time\":1333263600,\"datetime\":1333238400,\"date\":1333252800}}]", :headers=>{"Content-Type"=>"application/json"}})
              got: ("http://doc-testdomain.us-east-1.cloudsearch.amazonaws.com/2011-02-01/documents/batch", {:body=>"[{\"type\":\"add\",\"id\":\"1\",\"version\":1,\"lang\":\"en\",\"fields\":{\"time\":1333263600,\"datetime\":1333238400,\"date\":1333263600}}]", :headers=>{"Content-Type"=>"application/json"}})
     # ./spec/documents_spec.rb:32:in `block (3 levels) in <top (required)>'

  2) Asari updating the index converts Time, DateTime, and Date fields to timestamp integers for rankability on update as well
     Failure/Error: HTTParty.should_receive(:post).with("http://doc-testdomain.us-east-1.cloudsearch.amazonaws.com/2011-02-01/documents/batch", { :body => [{ "type" => "add", "id" => "1", "version" => 1, "lang" => "en", "fields" => { :time => 1333263600, :datetime => 1333238400, :date => 1333252800 }}].to_json, :headers => { "Content-Type" => "application/json"}})
       Double received :post with unexpected arguments
         expected: ("http://doc-testdomain.us-east-1.cloudsearch.amazonaws.com/2011-02-01/documents/batch", {:body=>"[{\"type\":\"add\",\"id\":\"1\",\"version\":1,\"lang\":\"en\",\"fields\":{\"time\":1333263600,\"datetime\":1333238400,\"date\":1333252800}}]", :headers=>{"Content-Type"=>"application/json"}})
              got: ("http://doc-testdomain.us-east-1.cloudsearch.amazonaws.com/2011-02-01/documents/batch", {:body=>"[{\"type\":\"add\",\"id\":\"1\",\"version\":1,\"lang\":\"en\",\"fields\":{\"time\":1333263600,\"datetime\":1333238400,\"date\":1333263600}}]", :headers=>{"Content-Type"=>"application/json"}})
     # ./spec/documents_spec.rb:44:in `block (3 levels) in <top (required)>'

  3) Asari geography searching builds a proper query string
     Failure/Error: HTTParty.should_receive(:get).with("http://search-testdomain.us-east-1.cloudsearch.amazonaws.com/2011-02-01/search?q=&bq=%28and+lat%3A2505771415..2506771417+lng%3A111275735..111322958%29&size=10")
       Double received :get with unexpected arguments
         expected: ("http://search-testdomain.us-east-1.cloudsearch.amazonaws.com/2011-02-01/search?q=&bq=%28and+lat%3A2505771415..2506771417+lng%3A111275735..111322958%29&size=10")
              got: ("http://search-testdomain.us-east-1.cloudsearch.amazonaws.com/2011-02-01/search?q=&bq=%28and+lat%3A2505771415..2506771417+lng%3A2358260777..2359261578%29&size=10")
     # ./spec/search_spec.rb:149:in `block (3 levels) in <top (required)>'

Finished in 0.02437 seconds
66 examples, 3 failures

Failed examples:

rspec ./spec/documents_spec.rb:31 # Asari updating the index converts Time, DateTime, and Date fields to timestamp integers for rankability
rspec ./spec/documents_spec.rb:43 # Asari updating the index converts Time, DateTime, and Date fields to timestamp integers for rankability on update as well
rspec ./spec/search_spec.rb:148 # Asari geography searching builds a proper query string

토론 #2

나는 두 번째를 보지 못했지만, 첫 번째를 보았다...곧 복구가 진행되고 닫힙니다.나는 이것을 트라비스에게 더 넣어야 한다.지금 2조 실수를 봤어요.Tommy와 나는 같은 시간대에 있지만ci 서버가 없습니다.:)

토론 #셋

시간대가 어렵다.
2014년 4월에 랜스 그레이슨은 다음과 같이 썼다.

Ok, now I'm seeing the second set of errors. Tommy and I are in the same timezone but the ci servers aren't. :)


Reply to this email directly or view it on GitHub: https://github.com/wellbredgrapefruit/asari/issues/21#issuecomment-40436045



토미 모건
http://www.wellbredgrapefruit.com

토론 #4

고정했어

좋은 웹페이지 즐겨찾기