Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C831D93C5 for ; Thu, 5 Jan 2012 17:29:06 +0000 (UTC) Received: (qmail 10969 invoked by uid 500); 5 Jan 2012 17:29:03 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 10575 invoked by uid 500); 5 Jan 2012 17:29:03 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 10562 invoked by uid 99); 5 Jan 2012 17:29:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jan 2012 17:29:03 +0000 X-ASF-Spam-Status: No, hits=-2001.6 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jan 2012 17:29:02 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 211A013AEC2 for ; Thu, 5 Jan 2012 17:28:42 +0000 (UTC) Date: Thu, 5 Jan 2012 17:28:42 +0000 (UTC) From: "Jan Lehnardt (Updated) (JIRA)" To: dev@couchdb.apache.org Message-ID: <231982382.10239.1325784522137.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (COUCHDB-813) No View Server test for error in map function MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jan Lehnardt updated COUCHDB-813: --------------------------------- Fix Version/s: (was: 1.2) 1.3 Bump to 1.3.x. > No View Server test for error in map function > --------------------------------------------- > > Key: COUCHDB-813 > URL: https://issues.apache.org/jira/browse/COUCHDB-813 > Project: CouchDB > Issue Type: Bug > Components: Test Suite > Affects Versions: 0.11 > Reporter: Stephen Prater > Priority: Minor > Fix For: 1.3 > > > There is no r-spec test for how a view server should behave if an error is thrown in the map function. The JS server returns empty if map terminates abnormally so, I've codified that behavior in an rspec test. > it "should return empty if map terminates abnormally" do > @qs.reset! > @qs.run(["add_fun", functions["error-in-map"]]).should == true > @qs.run(["add_fun", functions["emit-once"]]).should == true > rows = @qs.run(["map_doc", {:a => "b"}]) > rows[0].should == [] > rows[1].should == [["baz","b"]] > end -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira