Susumu Yata
null+****@clear*****
Thu Sep 14 15:56:26 JST 2017
Susumu Yata 2017-09-14 15:56:26 +0900 (Thu, 14 Sep 2017) New Revision: 71dcbb0010c6e0217d97f5da7d45751eea6039eb https://github.com/groonga/grnci/commit/71dcbb0010c6e0217d97f5da7d45751eea6039eb Message: Add a test for DB.Shutdown. Ref: #39 Modified files: v2/libgrn/db_test.go Modified: v2/libgrn/db_test.go (+9 -0) =================================================================== --- v2/libgrn/db_test.go 2017-09-14 15:49:47 +0900 (9dfd56d) +++ v2/libgrn/db_test.go 2017-09-14 15:56:26 +0900 (6675d08) @@ -1374,6 +1374,15 @@ func TestDBSchema(t *testing.T) { // } // } +func TestDBShutdown(t *testing.T) { + db, dir := makeDB(t) + defer removeDB(db, dir) + + if err := db.Shutdown(); err != nil { + t.Fatalf("db.Shutdown failed: %v", err) + } +} + func TestDBStatus(t *testing.T) { db, dir := makeDB(t) defer removeDB(db, dir) -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20170914/bd4496fd/attachment.htm