[Groonga-commit] groonga/express-kotoumi [master] test: Add expectation to remove extra message listener for the teardown process

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Jan 30 13:16:14 JST 2013


YUKI Hiroshi	2013-01-30 13:16:14 +0900 (Wed, 30 Jan 2013)

  New Revision: 13936d9d6e5a7c4ebee56fe209f4da2990c53017
  https://github.com/groonga/express-kotoumi/commit/13936d9d6e5a7c4ebee56fe209f4da2990c53017

  Log:
    test: Add expectation to remove extra message listener for the teardown process

  Modified files:
    test/frontend-socket.io-handler.test.js

  Modified: test/frontend-socket.io-handler.test.js (+3 -0)
===================================================================
--- test/frontend-socket.io-handler.test.js    2013-01-30 13:08:03 +0900 (47c09de)
+++ test/frontend-socket.io-handler.test.js    2013-01-30 13:16:14 +0900 (0df6b79)
@@ -132,6 +132,9 @@ suite('Socket.IO API', function() {
       .wait(0.01)
       .next(function() {
         connection.assertThrows();
+        connection
+          .mock('removeListener')
+          .takes('message', function() {});
         done();
       })
       .error(function(error) {
-------------- next part --------------
HTML����������������������������...
Download 



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