couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [01/13] couch commit: updated refs/heads/COUCHDB-3287-pluggable-storage-engines to e4e3a68
Date Mon, 06 Feb 2017 21:59:00 GMT
Repository: couchdb-couch
Updated Branches:
  refs/heads/COUCHDB-3287-pluggable-storage-engines 8da891bb8 -> e4e3a6806


att tests


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/3cb37f8d
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/3cb37f8d
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/3cb37f8d

Branch: refs/heads/COUCHDB-3287-pluggable-storage-engines
Commit: 3cb37f8d774addc1838b4c8212aa14f0df20d79a
Parents: 8da891b
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Mon Feb 6 14:40:42 2017 -0600
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Mon Feb 6 14:40:42 2017 -0600

----------------------------------------------------------------------
 src/couch_att.erl | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/3cb37f8d/src/couch_att.erl
----------------------------------------------------------------------
diff --git a/src/couch_att.erl b/src/couch_att.erl
index 8ea1e45..e6ed7df 100644
--- a/src/couch_att.erl
+++ b/src/couch_att.erl
@@ -786,9 +786,7 @@ attachment_disk_term_test_() ->
     Headers = [{<<"X-Foo">>, <<"bar">>}],
     ExtendedAttachment = store(headers, Headers, BaseAttachment),
     ExtendedDiskTerm = {BaseDiskTerm, [{headers, Headers}]},
-    FakeDb = #db{
-        engine = {couch_bt_engine, #st{fd = fake_fd}}
-    },
+    FakeDb = test_util:fake_db([{engine, {couch_bt_engine, #st{fd=fake_fd}}}]),
     {"Disk term tests", [
         ?_assertEqual(BaseDiskTerm, to_disk_term(BaseAttachment)),
         ?_assertEqual(BaseAttachment, from_disk_term(FakeDb, BaseDiskTerm)),


Mime
View raw message