[Groonga-commit] groonga/gcs [master] Fix expected value for "dump" from blank database

Back to archive index

null+****@clear***** null+****@clear*****
2012年 7月 6日 (金) 14:56:09 JST


SHIMODA Hiroshi	2012-07-06 14:56:09 +0900 (Fri, 06 Jul 2012)

  New Revision: e46096594e332be97cc54c4c1f586433ba6e6b6a
  https://github.com/groonga/gcs/commit/e46096594e332be97cc54c4c1f586433ba6e6b6a

  Log:
    Fix expected value for "dump" from blank database

  Modified files:
    test/api-configuration.test.js

  Modified: test/api-configuration.test.js (+2 -1)
===================================================================
--- test/api-configuration.test.js    2012-07-06 14:48:08 +0900 (f9eeb21)
+++ test/api-configuration.test.js    2012-07-06 14:56:09 +0900 (5f843b9)
@@ -133,7 +133,8 @@ suite('Configuration API', function() {
         assert.deepEqual(response, expected);
 
         var dump = database.commandSync('dump');
-        var expected = '';
+        // var expected = '';
+        var expected = undefined; // nroonga returns undefined for a blank database!
         assert.equal(dump, expected);
 
         done();
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
下载 



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