Created
September 13, 2015 15:49
-
-
Save KlausTrainer/2fb1d980cd267c6538fe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/test/couch_doc_json_tests.erl b/test/couch_doc_json_tests.erl | |
index 56587cd..85a931a 100644 | |
--- a/test/couch_doc_json_tests.erl | |
+++ b/test/couch_doc_json_tests.erl | |
@@ -17,9 +17,10 @@ | |
json_doc_test_() -> | |
+ TestCtx = test_util:start(?MODULE), | |
{ | |
setup, | |
- fun() -> test_util:start(?MODULE) end, fun test_util:stop/1, | |
+ fun() -> TestCtx end, fun test_util:stop/1, | |
[ | |
{ | |
"Document from JSON", |
Author
KlausTrainer
commented
Sep 13, 2015
This makes all tests pass (note that it is somehow important to have test_util:start_couch()
outside of the {setup, …}
tuple):
diff --git a/test/couch_doc_json_tests.erl b/test/couch_doc_json_tests.erl
index 56587cd..037886f 100644
--- a/test/couch_doc_json_tests.erl
+++ b/test/couch_doc_json_tests.erl
@@ -17,9 +17,10 @@
json_doc_test_() ->
+ TestCtx = test_util:start_couch(),
{
setup,
- fun() -> test_util:start(?MODULE) end, fun test_util:stop/1,
+ fun() -> TestCtx end, fun test_util:stop_couch/1,
[
{
"Document from JSON",
Here's how to run the test separately:
rebar setup_eunit && BUILDDIR=$(pwd) rebar -r eunit apps=couch tests="json_doc_test"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment