[Groonga-commit] groonga/groonga at 101ee57 [master] test: group dirty database case

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 27 11:14:17 JST 2016


Kouhei Sutou	2016-10-27 11:14:17 +0900 (Thu, 27 Oct 2016)

  New Revision: 101ee5701b9625ced082748f515c5c561d5fce03
  https://github.com/groonga/groonga/commit/101ee5701b9625ced082748f515c5c561d5fce03

  Message:
    test: group dirty database case

  Modified files:
    test/command_line/suite/grndb/test_check.rb

  Modified: test/command_line/suite/grndb/test_check.rb (+11 -9)
===================================================================
--- test/command_line/suite/grndb/test_check.rb    2016-10-27 10:57:41 +0900 (c887849)
+++ test/command_line/suite/grndb/test_check.rb    2016-10-27 11:14:17 +0900 (e9046bc)
@@ -12,7 +12,8 @@ Database is locked. It may be broken. Re-create the database.
     MESSAGE
   end
 
-  def test_dirty_database
+  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)
@@ -20,15 +21,16 @@ 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
+     MESSAGE
+   end
   end
 
   def test_cleaned_database
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index