diff options
author | Paul J. Davis <paul.joseph.davis@gmail.com> | 2019-12-25 11:38:15 -0600 |
---|---|---|
committer | Paul J. Davis <paul.joseph.davis@gmail.com> | 2019-12-25 13:52:32 -0600 |
commit | dc4887eb6dcefe07b48229b0ddc9aa6aeb62f514 (patch) | |
tree | 8334b86b4a356166989a17d3bc91eae11b440484 | |
parent | 23d673912427010e15afb688dad957eaa2a73e3f (diff) | |
download | couchdb-dc4887eb6dcefe07b48229b0ddc9aa6aeb62f514.tar.gz |
Speedup eunit: couch_replicator
-rw-r--r-- | src/couch_replicator/src/couch_replicator.erl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/couch_replicator/src/couch_replicator.erl b/src/couch_replicator/src/couch_replicator.erl index 510b878bd..b38f31b59 100644 --- a/src/couch_replicator/src/couch_replicator.erl +++ b/src/couch_replicator/src/couch_replicator.erl @@ -346,11 +346,13 @@ expect_rep_user_ctx(Name, Role) -> strip_url_creds_test_() -> { - foreach, - fun () -> meck:expect(config, get, - fun(_, _, Default) -> Default end) + setup, + fun() -> + meck:expect(config, get, fun(_, _, Default) -> Default end) + end, + fun(_) -> + meck:unload() end, - fun (_) -> meck:unload() end, [ t_strip_http_basic_creds(), t_strip_http_props_creds(), |