Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 50418 invoked from network); 16 Jun 2009 16:55:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Jun 2009 16:55:20 -0000 Received: (qmail 98523 invoked by uid 500); 16 Jun 2009 16:55:31 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 98471 invoked by uid 500); 16 Jun 2009 16:55:31 -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 98461 invoked by uid 99); 16 Jun 2009 16:55:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 16:55:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jun 2009 16:55:29 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 85FA9234C044 for ; Tue, 16 Jun 2009 09:55:07 -0700 (PDT) Message-ID: <2050388074.1245171307534.JavaMail.jira@brutus> Date: Tue, 16 Jun 2009 09:55:07 -0700 (PDT) From: "Brad Anderson (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Updated: (COUCHDB-384) [PATCH] Improvements to couch_config for unit testing purposes In-Reply-To: <595308012.1245171187344.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brad Anderson updated COUCHDB-384: ---------------------------------- Attachment: couchdb-384.patch > [PATCH] Improvements to couch_config for unit testing purposes > -------------------------------------------------------------- > > Key: COUCHDB-384 > URL: https://issues.apache.org/jira/browse/COUCHDB-384 > Project: CouchDB > Issue Type: Improvement > Components: Database Core > Affects Versions: 0.9 > Reporter: Brad Anderson > Priority: Minor > Attachments: couchdb-384.patch > > > To be able to run unit tests involving configuration (i.e. couch_config module), two changes are proposed: > 1. The ability to start the couch_config gen_server with no .ini files in start_link/1. This means that CouchDB doesn't even need to be running for tests to be performed. The caller of set/4 needs to use 'false' as the Persist argument, but this is probably desirable when running unit tests. > 2. The ability to shut down the couch_config gen_server is necessary for proper cleanup after the tests are run. > The attached patch solves both issues. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.