Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add back config api #165

Merged
merged 1 commit into from
Jan 14, 2021
Merged

add back config api #165

merged 1 commit into from
Jan 14, 2021

Conversation

lazedo
Copy link
Contributor

@lazedo lazedo commented Jan 5, 2017

we need this for older version like bigcouch

This reverts commit 17f3f74.
?assertEqual({ok, <<"2">>}, couchbeam:get_config(Server, <<"couchbeam">>, <<"test">>)),
?assertEqual({ok, <<"2">>}, couchbeam:delete_config(Server, <<"couchbeam">>, <<"test">>, false)),
?assertEqual({error, not_found}, couchbeam:get_config(Server, <<"couchbeam">>, <<"test">>)),
ok.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: to properly count the tests:

  1. suffix the function with _test_ (config_test_() ->)
  2. wrap these asserts in a list & prefix them with _ ([?_assertEqual(<<"5984">>, Port), ...])
  3. remove that last ok

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fenollp this is a reverse commit, not updating anything here

@benoitc benoitc merged commit 760d08c into benoitc:master Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants