[Groonga-commit] groonga/groonga at c0cefc2 [master] grndb test: indent

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 27 11:40:55 JST 2016


Kouhei Sutou	2016-10-27 11:40:55 +0900 (Thu, 27 Oct 2016)

  New Revision: c0cefc2d7a2db70b409cc58bbf519d30b5d9adf6
  https://github.com/groonga/groonga/commit/c0cefc2d7a2db70b409cc58bbf519d30b5d9adf6

  Message:
    grndb test: indent

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

  Modified: test/command_line/suite/grndb/test_check.rb (+13 -12)
===================================================================
--- test/command_line/suite/grndb/test_check.rb    2016-10-27 11:40:25 +0900 (29002ca)
+++ test/command_line/suite/grndb/test_check.rb    2016-10-27 11:40:55 +0900 (67d07ae)
@@ -108,22 +108,23 @@ load --table Users
   end
 
   sub_test_case "locked index column" do
-  def test_locked_segment
-    groonga("table_create", "Users", "TABLE_HASH_KEY", "ShortText")
-    groonga("column_create", "Users", "age", "COLUMN_SCALAR", "UInt8")
+    def test_locked_segment
+      groonga("table_create", "Users", "TABLE_HASH_KEY", "ShortText")
+      groonga("column_create", "Users", "age", "COLUMN_SCALAR", "UInt8")
 
-    groonga("table_create", "Ages", "TABLE_PAT_KEY", "UInt8")
-    groonga("column_create", "Ages", "users_age", "COLUMN_INDEX", "Users", "age")
+      groonga("table_create", "Ages", "TABLE_PAT_KEY", "UInt8")
+      groonga("column_create", "Ages", "users_age",
+              "COLUMN_INDEX", "Users", "age")
 
-    groonga("lock_acquire", "Ages.users_age")
+      groonga("lock_acquire", "Ages.users_age")
 
-    error = assert_raise(CommandRunner::Error) do
-      grndb("check")
-    end
-    assert_equal(<<-MESSAGE, error.error_output)
+      error = assert_raise(CommandRunner::Error) do
+        grndb("check")
+      end
+      assert_equal(<<-MESSAGE, error.error_output)
 [Ages.users_age] Index column is locked. It may be broken. Re-create index by '#{grndb_path} recover #{@database_path}'.
-    MESSAGE
-  end
+      MESSAGE
+    end
   end
 
   sub_test_case "--target" do
-------------- next part --------------
HTML����������������������������...
Download 



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