[Groonga-commit] groonga/gcs [master] Add assertion for cs-command test about database contents

Back to archive index

null+****@clear***** null+****@clear*****
2012年 8月 6日 (月) 12:52:29 JST


SHIMODA Hiroshi	2012-08-06 12:52:29 +0900 (Mon, 06 Aug 2012)

  New Revision: 86e29829d5aef6ee1c664508964f2040addd8e7c
  https://github.com/groonga/gcs/commit/86e29829d5aef6ee1c664508964f2040addd8e7c

  Log:
    Add assertion for cs-command test about database contents

  Modified files:
    test/cs-commands.test.js

  Modified: test/cs-commands.test.js (+7 -0)
===================================================================
--- test/cs-commands.test.js    2012-08-06 12:51:01 +0900 (e04d6cf)
+++ test/cs-commands.test.js    2012-08-06 12:52:29 +0900 (69caf99)
@@ -1,6 +1,8 @@
 var utils = require('./test-utils');
 var assert = require('chai').assert;
 
+var Domain = require('../lib/database/domain').Domain;
+
 var context;
 var temporaryDatabase;
 
@@ -29,6 +31,11 @@ suite('cs-create-domain', function() {
         assert.equal(result.code, 0);
         assert.include(result.output.stdout,
                        'Domain endpoints are currently being created.');
+
+        context.reopen();
+        var domain = new Domain('test', context);
+        assert.isTrue(domain.exists());
+
         done();
       });
   });
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



Groonga-commit メーリングリストの案内
Back to archive index