Kouhei Sutou
null+****@clear*****
Thu Oct 27 11:14:37 JST 2016
Kouhei Sutou 2016-10-27 11:14:37 +0900 (Thu, 27 Oct 2016) New Revision: 78e63e017dea1e60f5976d75b0cb0f9d072f8018 https://github.com/groonga/groonga/commit/78e63e017dea1e60f5976d75b0cb0f9d072f8018 Message: test: indent Modified files: test/command_line/suite/grndb/test_check.rb Modified: test/command_line/suite/grndb/test_check.rb (+13 -13) =================================================================== --- test/command_line/suite/grndb/test_check.rb 2016-10-27 11:14:17 +0900 (e9046bc) +++ test/command_line/suite/grndb/test_check.rb 2016-10-27 11:14:37 +0900 (607856d) @@ -13,24 +13,24 @@ Database is locked. It may be broken. Re-create the database. end sub_test_case "dirty database" do - def test_only_table - groonga("table_create", "Users", "TABLE_HASH_KEY", "ShortText") - groonga do |process| - process.run_command(<<-COMMAND) + def test_only_table + groonga("table_create", "Users", "TABLE_HASH_KEY", "ShortText") + groonga do |process| + process.run_command(<<-COMMAND) load --table Users [ {"_key": "Alice"} ] - COMMAND - Process.kill(:KILL, process.pid) - end - error = assert_raise(CommandRunner::Error) do - grndb("check") - end - assert_equal(<<-MESSAGE, error.error_output) + COMMAND + Process.kill(:KILL, process.pid) + end + error = assert_raise(CommandRunner::Error) do + grndb("check") + end + assert_equal(<<-MESSAGE, error.error_output) Database wasn't closed successfully. It may be broken. Re-create the database. - MESSAGE - end + MESSAGE + end end def test_cleaned_database -------------- next part -------------- HTML����������������������������...Download