You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2021/12/15 23:47:29 UTC

[couchdb] 03/04: [fixup] format test/smoosh_tests

This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch pr-3766
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit a0b71ce078c311df59f07fe775070174968cc7a2
Author: Nick Vatamaniuc <va...@gmail.com>
AuthorDate: Wed Dec 15 18:17:10 2021 -0500

    [fixup] format test/smoosh_tests
---
 src/smoosh/test/smoosh_tests.erl | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/src/smoosh/test/smoosh_tests.erl b/src/smoosh/test/smoosh_tests.erl
index e15c928..0e8799c 100644
--- a/src/smoosh/test/smoosh_tests.erl
+++ b/src/smoosh/test/smoosh_tests.erl
@@ -56,11 +56,10 @@ persistence_tests() ->
     {
         "Should persist queue state",
         [
-              make_test_case("ratio_dbs", Tests)
+            make_test_case("ratio_dbs", Tests)
         ]
     }.
 
-
 channels_tests() ->
     Tests = [
         fun should_enqueue/2
@@ -68,7 +67,7 @@ channels_tests() ->
     {
         "Various channels tests",
         [
-              make_test_case("ratio_dbs", Tests)
+            make_test_case("ratio_dbs", Tests)
         ]
     }.
 
@@ -100,10 +99,12 @@ grow_db_file(DbName, SizeInKb) ->
     Bytes = binary:copy(?KILOBYTE, SizeInKb),
     file:write(Fd, Bytes),
     ok = file:close(Fd),
-    Doc = couch_doc:from_json_obj({[
-        {<<"_id">>, ?l2b(?docid())},
-        {<<"value">>, ?l2b(?docid())}
-    ]}),
+    Doc = couch_doc:from_json_obj(
+        {[
+            {<<"_id">>, ?l2b(?docid())},
+            {<<"value">>, ?l2b(?docid())}
+        ]}
+    ),
     {ok, _} = couch_db:update_docs(Db, [Doc], []),
     couch_db:close(Db),
     ok.