diff --git a/doc/code_snippets/test/checks/checkers_test.lua b/doc/code_snippets/test/checks/checkers_test.lua index ee9f3c6ae0..23826a1d4c 100644 --- a/doc/code_snippets/test/checks/checkers_test.lua +++ b/doc/code_snippets/test/checks/checkers_test.lua @@ -20,7 +20,7 @@ local is_uint64 = checkers.uint64(2048) -- is_int64/is_uint64 = true -- tuple checker -local is_tuple = checkers.tuple(box.tuple.new(1, 'The Beatles', 1960)) +local is_tuple = checkers.tuple(box.tuple.new{1, 'The Beatles', 1960}) -- is_tuple = true -- uuid checkers diff --git a/doc/code_snippets/test/constraints/constraint_sql_expr_test.lua b/doc/code_snippets/test/constraints/constraint_sql_expr_test.lua index 61af6ddeda..84bd260e40 100644 --- a/doc/code_snippets/test/constraints/constraint_sql_expr_test.lua +++ b/doc/code_snippets/test/constraints/constraint_sql_expr_test.lua @@ -11,8 +11,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_constraints = function(cg) @@ -42,21 +42,21 @@ g.test_constraints = function(cg) local _, age_err = pcall(function() -- insert_age_error_start customers:insert { 2, "Bob", 18 } - -- error: Check constraint 'check_person' failed for tuple + -- error: Check constraint 'check_person' failed for a tuple -- insert_age_error_end end) local _, name_err = pcall(function() -- insert_name_error_start customers:insert { 3, "Admin", 25 } - -- error: Check constraint 'check_person' failed for tuple + -- error: Check constraint 'check_person' failed for a tuple -- insert_name_error_end end) -- Tests -- t.assert_equals(customers:count(), 1) t.assert_equals(customers:get(1), { 1, "Alice", 30 }) - t.assert_equals(age_err:unpack().message, 'Check constraint \'check_person\' failed for tuple') - t.assert_equals(name_err:unpack().message, 'Check constraint \'check_person\' failed for tuple') + t.assert_equals(age_err:unpack().message, 'Check constraint \'check_person\' failed for a tuple') + t.assert_equals(name_err:unpack().message, 'Check constraint \'check_person\' failed for a tuple') end) end diff --git a/doc/code_snippets/test/constraints/constraint_test.lua b/doc/code_snippets/test/constraints/constraint_test.lua index cd37ee25e7..f6800026e1 100644 --- a/doc/code_snippets/test/constraints/constraint_test.lua +++ b/doc/code_snippets/test/constraints/constraint_test.lua @@ -11,8 +11,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_constraints = function(cg) @@ -51,7 +51,7 @@ g.test_constraints = function(cg) t.assert_equals(customers:get(1), {1, "Alice", 30}) -- Failed contstraint -- - t.assert_error_msg_contains("Check constraint 'check_person' failed for tuple", + t.assert_error_msg_contains("Check constraint 'check_person' failed for a tuple", function() customers:insert{2, "Bob", 230} end) -- Create one more tuple constraint -- diff --git a/doc/code_snippets/test/foreign_keys/field_foreign_key_test.lua b/doc/code_snippets/test/foreign_keys/field_foreign_key_test.lua index 196018545c..2aab77aeea 100644 --- a/doc/code_snippets/test/foreign_keys/field_foreign_key_test.lua +++ b/doc/code_snippets/test/foreign_keys/field_foreign_key_test.lua @@ -11,8 +11,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_foreign_keys = function(cg) diff --git a/doc/code_snippets/test/foreign_keys/tuple_foreign_key_test.lua b/doc/code_snippets/test/foreign_keys/tuple_foreign_key_test.lua index 325c0705b7..4701d92362 100644 --- a/doc/code_snippets/test/foreign_keys/tuple_foreign_key_test.lua +++ b/doc/code_snippets/test/foreign_keys/tuple_foreign_key_test.lua @@ -11,8 +11,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_foreign_keys = function(cg) diff --git a/doc/code_snippets/test/indexes/create_index_field_number_test.lua b/doc/code_snippets/test/indexes/create_index_field_number_test.lua index 6126112dc5..8857ddf2f3 100644 --- a/doc/code_snippets/test/indexes/create_index_field_number_test.lua +++ b/doc/code_snippets/test/indexes/create_index_field_number_test.lua @@ -11,8 +11,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_indexes = function(cg) diff --git a/doc/code_snippets/test/indexes/create_index_func_multikey_test.lua b/doc/code_snippets/test/indexes/create_index_func_multikey_test.lua index 2ad5d70d27..84ef8fdbdd 100644 --- a/doc/code_snippets/test/indexes/create_index_func_multikey_test.lua +++ b/doc/code_snippets/test/indexes/create_index_func_multikey_test.lua @@ -11,8 +11,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_func_multikey_index = function(cg) diff --git a/doc/code_snippets/test/indexes/create_index_func_test.lua b/doc/code_snippets/test/indexes/create_index_func_test.lua index 2250add97a..e62fed9700 100644 --- a/doc/code_snippets/test/indexes/create_index_func_test.lua +++ b/doc/code_snippets/test/indexes/create_index_func_test.lua @@ -11,8 +11,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_func_index = function(cg) diff --git a/doc/code_snippets/test/indexes/create_index_json_path_test.lua b/doc/code_snippets/test/indexes/create_index_json_path_test.lua index 6e98633be5..9d50bb814c 100644 --- a/doc/code_snippets/test/indexes/create_index_json_path_test.lua +++ b/doc/code_snippets/test/indexes/create_index_json_path_test.lua @@ -11,8 +11,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_json_path_index = function(cg) diff --git a/doc/code_snippets/test/indexes/create_index_key_parts_test.lua b/doc/code_snippets/test/indexes/create_index_key_parts_test.lua index 6fb1b401a2..87a733231a 100644 --- a/doc/code_snippets/test/indexes/create_index_key_parts_test.lua +++ b/doc/code_snippets/test/indexes/create_index_key_parts_test.lua @@ -11,8 +11,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_indexes = function(cg) diff --git a/doc/code_snippets/test/indexes/index_aggr_functions_test.lua b/doc/code_snippets/test/indexes/index_aggr_functions_test.lua index 630e051f42..71d7c9b8a3 100644 --- a/doc/code_snippets/test/indexes/index_aggr_functions_test.lua +++ b/doc/code_snippets/test/indexes/index_aggr_functions_test.lua @@ -11,8 +11,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_indexes = function(cg) diff --git a/doc/code_snippets/test/indexes/index_custom_function_test.lua b/doc/code_snippets/test/indexes/index_custom_function_test.lua index 462ade33ad..2da068a330 100644 --- a/doc/code_snippets/test/indexes/index_custom_function_test.lua +++ b/doc/code_snippets/test/indexes/index_custom_function_test.lua @@ -11,8 +11,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_indexes = function(cg) diff --git a/doc/code_snippets/test/indexes/index_select_test.lua b/doc/code_snippets/test/indexes/index_select_test.lua index ee4403f8cd..14bfd54027 100644 --- a/doc/code_snippets/test/indexes/index_select_test.lua +++ b/doc/code_snippets/test/indexes/index_select_test.lua @@ -11,8 +11,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_indexes = function(cg) diff --git a/doc/code_snippets/test/logging/log_existing_c_modules_test.lua b/doc/code_snippets/test/logging/log_existing_c_modules_test.lua index 2fba3bc083..0897e489c3 100644 --- a/doc/code_snippets/test/logging/log_existing_c_modules_test.lua +++ b/doc/code_snippets/test/logging/log_existing_c_modules_test.lua @@ -31,8 +31,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) local function find_in_log(cg, str, must_be_present) diff --git a/doc/code_snippets/test/logging/log_existing_modules_test.lua b/doc/code_snippets/test/logging/log_existing_modules_test.lua index 7ee515d2bf..08d4e672d0 100644 --- a/doc/code_snippets/test/logging/log_existing_modules_test.lua +++ b/doc/code_snippets/test/logging/log_existing_modules_test.lua @@ -39,8 +39,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) local function find_in_log(cg, str, must_be_present) diff --git a/doc/code_snippets/test/logging/log_new_modules_test.lua b/doc/code_snippets/test/logging/log_new_modules_test.lua index 82302a545a..b7dee6ba7d 100644 --- a/doc/code_snippets/test/logging/log_new_modules_test.lua +++ b/doc/code_snippets/test/logging/log_new_modules_test.lua @@ -43,8 +43,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) local function find_in_log(cg, str, must_be_present) diff --git a/doc/code_snippets/test/logging/log_test.lua b/doc/code_snippets/test/logging/log_test.lua index ed913473e3..ddc031d0b8 100644 --- a/doc/code_snippets/test/logging/log_test.lua +++ b/doc/code_snippets/test/logging/log_test.lua @@ -30,8 +30,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) local function find_in_log(cg, str, must_be_present) diff --git a/doc/code_snippets/test/msgpack/msgpack_object_index_test.lua b/doc/code_snippets/test/msgpack/msgpack_object_index_test.lua index ee9fa88cd5..9cbfc69804 100644 --- a/doc/code_snippets/test/msgpack/msgpack_object_index_test.lua +++ b/doc/code_snippets/test/msgpack/msgpack_object_index_test.lua @@ -2,7 +2,7 @@ local msgpack = require('msgpack') local mp_from_array = msgpack.object({ 10, 20, 30 }) local mp_from_table = msgpack.object({ band_name = 'The Beatles', year = 1960 }) -local mp_from_tuple = msgpack.object(box.tuple.new(1, 'The Beatles', 1960)) +local mp_from_tuple = msgpack.object(box.tuple.new{1, 'The Beatles', 1960}) -- Get MsgPack data by the specified index or key local mp_array_get_by_index = mp_from_array[1] -- Returns 10 diff --git a/doc/code_snippets/test/msgpack/msgpack_object_test.lua b/doc/code_snippets/test/msgpack/msgpack_object_test.lua index 1718d18b18..7d52ff0093 100644 --- a/doc/code_snippets/test/msgpack/msgpack_object_test.lua +++ b/doc/code_snippets/test/msgpack/msgpack_object_test.lua @@ -5,7 +5,7 @@ local mp_from_number = msgpack.object(123) local mp_from_string = msgpack.object('hello world') local mp_from_array = msgpack.object({ 10, 20, 30 }) local mp_from_table = msgpack.object({ band_name = 'The Beatles', year = 1960 }) -local mp_from_tuple = msgpack.object(box.tuple.new(1, 'The Beatles', 1960)) +local mp_from_tuple = msgpack.object(box.tuple.new{1, 'The Beatles', 1960}) -- Create a MsgPack object from a raw MsgPack string local raw_mp_string = msgpack.encode({ 10, 20, 30 }) diff --git a/doc/code_snippets/test/sequence/sequence_test.lua b/doc/code_snippets/test/sequence/sequence_test.lua index 5c702dda73..c0f7486fc1 100644 --- a/doc/code_snippets/test/sequence/sequence_test.lua +++ b/doc/code_snippets/test/sequence/sequence_test.lua @@ -11,8 +11,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_sequence = function(cg) diff --git a/doc/code_snippets/test/sql/array_access_test.lua b/doc/code_snippets/test/sql/array_access_test.lua index ff05428e0e..341947e788 100644 --- a/doc/code_snippets/test/sql/array_access_test.lua +++ b/doc/code_snippets/test/sql/array_access_test.lua @@ -11,8 +11,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_space_is_updated = function(cg) diff --git a/doc/code_snippets/test/sql/check_table_constraint_test.lua b/doc/code_snippets/test/sql/check_table_constraint_test.lua index c8a6862fe9..54e4721431 100644 --- a/doc/code_snippets/test/sql/check_table_constraint_test.lua +++ b/doc/code_snippets/test/sql/check_table_constraint_test.lua @@ -11,8 +11,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_space_is_updated = function(cg) @@ -36,12 +36,12 @@ g.test_space_is_updated = function(cg) -- insert_short_name_start INSERT INTO author VALUES (3, 'Alex'); /* - - Check constraint 'CHECK_NAME_LENGTH' failed for tuple + - Check constraint 'check_name_length' failed for a tuple */ -- insert_short_name_end ]]) -- Tests - t.assert_equals(insert_author_err:unpack().message, "Check constraint 'CHECK_NAME_LENGTH' failed for tuple") + t.assert_equals(insert_author_err:unpack().message, "Check constraint 'check_name_length' failed for a tuple") end) end diff --git a/doc/code_snippets/test/sql/foreign_key_table_constraint_test.lua b/doc/code_snippets/test/sql/foreign_key_table_constraint_test.lua index 4ed831343a..e5b3fcf680 100644 --- a/doc/code_snippets/test/sql/foreign_key_table_constraint_test.lua +++ b/doc/code_snippets/test/sql/foreign_key_table_constraint_test.lua @@ -11,8 +11,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_space_is_updated = function(cg) @@ -53,7 +53,7 @@ g.test_space_is_updated = function(cg) -- insert_error_start INSERT INTO book VALUES (3, 'Eugene Onegin', 3); /* - - 'Foreign key constraint ''fk_unnamed_BOOK_1'' failed: foreign tuple was not found' + - 'Foreign key constraint ''fk_unnamed_book_1'' failed: foreign tuple was not found' */ -- insert_error_end ]]) @@ -61,7 +61,7 @@ g.test_space_is_updated = function(cg) -- update_error_start UPDATE book SET author_id = 10 WHERE id = 1; /* - - 'Foreign key constraint ''fk_unnamed_BOOK_1'' failed: foreign tuple was not found' + - 'Foreign key constraint ''fk_unnamed_book_1'' failed: foreign tuple was not found' */ -- update_error_end ]]) @@ -69,14 +69,14 @@ g.test_space_is_updated = function(cg) -- delete_error_start DELETE FROM author WHERE id = 2; /* - - 'Foreign key ''fk_unnamed_BOOK_1'' integrity check failed: tuple is referenced' + - 'Foreign key ''fk_unnamed_book_1'' integrity check failed: tuple is referenced' */ -- delete_error_end ]]) -- Tests - t.assert_equals(insert_err:unpack().message, "Foreign key constraint 'fk_unnamed_BOOK_1' failed: foreign tuple was not found") - t.assert_equals(update_err:unpack().message, "Foreign key constraint 'fk_unnamed_BOOK_1' failed: foreign tuple was not found") - t.assert_equals(delete_err:unpack().message, "Foreign key 'fk_unnamed_BOOK_1' integrity check failed: tuple is referenced") + t.assert_equals(insert_err:unpack().message, "Foreign key constraint 'fk_unnamed_book_1' failed: foreign tuple was not found") + t.assert_equals(update_err:unpack().message, "Foreign key constraint 'fk_unnamed_book_1' failed: foreign tuple was not found") + t.assert_equals(delete_err:unpack().message, "Foreign key 'fk_unnamed_book_1' integrity check failed: tuple is referenced") end) end diff --git a/doc/code_snippets/test/sql/map_access_test.lua b/doc/code_snippets/test/sql/map_access_test.lua index b0bf49a1e1..1e24110826 100644 --- a/doc/code_snippets/test/sql/map_access_test.lua +++ b/doc/code_snippets/test/sql/map_access_test.lua @@ -11,8 +11,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_space_is_updated = function(cg) diff --git a/doc/code_snippets/test/sql/primary_key_table_constraint_test.lua b/doc/code_snippets/test/sql/primary_key_table_constraint_test.lua index f981e271b7..cc3a022e79 100644 --- a/doc/code_snippets/test/sql/primary_key_table_constraint_test.lua +++ b/doc/code_snippets/test/sql/primary_key_table_constraint_test.lua @@ -11,8 +11,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_space_is_updated = function(cg) @@ -35,7 +35,7 @@ g.test_space_is_updated = function(cg) -- insert_duplicate_author_start INSERT INTO author VALUES (2, 'Alexander Pushkin'); /* - - Duplicate key exists in unique index "pk_unnamed_AUTHOR_1" in space "AUTHOR" with + - Duplicate key exists in unique index "pk_unnamed_author_1" in space "author" with old tuple - [2, "Fyodor Dostoevsky"] and new tuple - [2, "Alexander Pushkin"] */ -- insert_duplicate_author_end @@ -59,14 +59,14 @@ g.test_space_is_updated = function(cg) -- insert_duplicate_book_start INSERT INTO book VALUES (2, 'Crime and Punishment'); /* - - Duplicate key exists in unique index "pk_unnamed_BOOK_1" in space "BOOK" with old + - Duplicate key exists in unique index "pk_unnamed_book_1" in space "BOOK" with old tuple - [2, "Crime and Punishment"] and new tuple - [2, "Crime and Punishment"] */ -- insert_duplicate__book_end ]]) -- Tests - t.assert_equals(insert_author_err:unpack().message, "Duplicate key exists in unique index \"pk_unnamed_AUTHOR_1\" in space \"AUTHOR\" with old tuple - [2, \"Fyodor Dostoevsky\"] and new tuple - [2, \"Alexander Pushkin\"]") - t.assert_equals(insert_book_err:unpack().message, "Duplicate key exists in unique index \"pk_unnamed_BOOK_1\" in space \"BOOK\" with old tuple - [2, \"Crime and Punishment\"] and new tuple - [2, \"Crime and Punishment\"]") + t.assert_equals(insert_author_err:unpack().message, "Duplicate key exists in unique index \"pk_unnamed_author_1\" in space \"author\" with old tuple - [2, \"Fyodor Dostoevsky\"] and new tuple - [2, \"Alexander Pushkin\"]") + t.assert_equals(insert_book_err:unpack().message, "Duplicate key exists in unique index \"pk_unnamed_book_1\" in space \"book\" with old tuple - [2, \"Crime and Punishment\"] and new tuple - [2, \"Crime and Punishment\"]") end) end diff --git a/doc/code_snippets/test/sql/unique_table_constraint_test.lua b/doc/code_snippets/test/sql/unique_table_constraint_test.lua index fdf53bb7a5..2bcfa2fb66 100644 --- a/doc/code_snippets/test/sql/unique_table_constraint_test.lua +++ b/doc/code_snippets/test/sql/unique_table_constraint_test.lua @@ -11,8 +11,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_space_is_updated = function(cg) @@ -35,7 +35,7 @@ g.test_space_is_updated = function(cg) -- insert_duplicate_author_start INSERT INTO author VALUES (3, 'Leo Tolstoy'); /* - - Duplicate key exists in unique index "unique_unnamed_AUTHOR_2" in space "AUTHOR" + - Duplicate key exists in unique index "unique_unnamed_author_2" in space "author" with old tuple - [1, "Leo Tolstoy"] and new tuple - [3, "Leo Tolstoy"] */ -- insert_duplicate_author_end @@ -60,14 +60,14 @@ g.test_space_is_updated = function(cg) -- insert_duplicate_book_start INSERT INTO book VALUES (3, 'War and Peace', 1); /* - - Duplicate key exists in unique index "unique_unnamed_BOOK_2" in space "BOOK" with + - Duplicate key exists in unique index "unique_unnamed_book_2" in space "book" with old tuple - [1, "War and Peace", 1] and new tuple - [3, "War and Peace", 1] */ -- insert_duplicate__book_end ]]) -- Tests - t.assert_equals(insert_author_err:unpack().message, "Duplicate key exists in unique index \"unique_unnamed_AUTHOR_2\" in space \"AUTHOR\" with old tuple - [1, \"Leo Tolstoy\"] and new tuple - [3, \"Leo Tolstoy\"]") - t.assert_equals(insert_book_err:unpack().message, "Duplicate key exists in unique index \"unique_unnamed_BOOK_2\" in space \"BOOK\" with old tuple - [1, \"War and Peace\", 1] and new tuple - [3, \"War and Peace\", 1]") + t.assert_equals(insert_author_err:unpack().message, "Duplicate key exists in unique index \"unique_unnamed_author_2\" in space \"author\" with old tuple - [1, \"Leo Tolstoy\"] and new tuple - [3, \"Leo Tolstoy\"]") + t.assert_equals(insert_book_err:unpack().message, "Duplicate key exists in unique index \"unique_unnamed_book_2\" in space \"book\" with old tuple - [1, \"War and Peace\", 1] and new tuple - [3, \"War and Peace\", 1]") end) end diff --git a/doc/code_snippets/test/transactions/box_atomic_test.lua b/doc/code_snippets/test/transactions/box_atomic_test.lua index 46c0c7167b..6e5f3870c2 100644 --- a/doc/code_snippets/test/transactions/box_atomic_test.lua +++ b/doc/code_snippets/test/transactions/box_atomic_test.lua @@ -19,8 +19,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_space_is_updated = function(cg) diff --git a/doc/code_snippets/test/transactions/box_commit_test.lua b/doc/code_snippets/test/transactions/box_commit_test.lua index 122572a58f..5190cfe8a1 100644 --- a/doc/code_snippets/test/transactions/box_commit_test.lua +++ b/doc/code_snippets/test/transactions/box_commit_test.lua @@ -20,8 +20,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_space_is_updated = function(cg) diff --git a/doc/code_snippets/test/transactions/box_on_commit_iterator_test.lua b/doc/code_snippets/test/transactions/box_on_commit_iterator_test.lua index 68deaecb16..8072c9ebff 100644 --- a/doc/code_snippets/test/transactions/box_on_commit_iterator_test.lua +++ b/doc/code_snippets/test/transactions/box_on_commit_iterator_test.lua @@ -20,8 +20,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_space_is_updated = function(cg) diff --git a/doc/code_snippets/test/transactions/box_on_commit_test.lua b/doc/code_snippets/test/transactions/box_on_commit_test.lua index d1ed66a15d..aae0aedcdd 100644 --- a/doc/code_snippets/test/transactions/box_on_commit_test.lua +++ b/doc/code_snippets/test/transactions/box_on_commit_test.lua @@ -20,8 +20,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_space_is_updated = function(cg) diff --git a/doc/code_snippets/test/transactions/box_rollback_savepoint_test.lua b/doc/code_snippets/test/transactions/box_rollback_savepoint_test.lua index bfcf89a8d7..31e86a3881 100644 --- a/doc/code_snippets/test/transactions/box_rollback_savepoint_test.lua +++ b/doc/code_snippets/test/transactions/box_rollback_savepoint_test.lua @@ -20,8 +20,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_space_is_updated_partially = function(cg) diff --git a/doc/code_snippets/test/transactions/box_rollback_test.lua b/doc/code_snippets/test/transactions/box_rollback_test.lua index 34a02e5a9a..fd80a96457 100644 --- a/doc/code_snippets/test/transactions/box_rollback_test.lua +++ b/doc/code_snippets/test/transactions/box_rollback_test.lua @@ -20,8 +20,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) g.test_space_is_not_updated = function(cg) diff --git a/doc/code_snippets/test/triggers/on_recovery_state_test.lua b/doc/code_snippets/test/triggers/on_recovery_state_test.lua index adf7dc32bb..82108f682d 100644 --- a/doc/code_snippets/test/triggers/on_recovery_state_test.lua +++ b/doc/code_snippets/test/triggers/on_recovery_state_test.lua @@ -22,8 +22,8 @@ g.before_each(function(cg) end) g.after_each(function(cg) - cg.server:stop() cg.server:drop() + fio.rmtree(cg.server.workdir) end) local function find_in_log(cg, str, must_be_present)