Permalink
Browse files

Ensuring that the integration tests pass

  • Loading branch information...
1 parent 07349a0 commit 98dad535fdb2ac75ad0c3297709af994d1bad0bd @jamierumbelow committed Apr 28, 2012
Showing with 15 additions and 9 deletions.
  1. +6 −2 lib/command.js
  2. +2 −2 lib/server.js
  3. +4 −1 src/command.coffee
  4. +1 −2 src/server.coffee
  5. +2 −2 test/server_test.coffee
View
Oops, something went wrong.
View
Oops, something went wrong.
View
@@ -11,4 +11,7 @@ program
.option('-q, --quiet', 'Silence output')
.parse(process.argv)
-server = new postmaster.Server null, program.listen, program.port, (program.quiet?)
+store = new postmaster.Store()
+
+server = new postmaster.Server null, program.listen, program.port, (program.quiet?), store
+api = new postmaster.API program.listen, program.port + 1, null, store
View
@@ -6,10 +6,9 @@ Store = require('./store').Store
class exports.Server
@STATES = { default: 1, data: 2, possibly_end_data: 3 }
- constructor: (next, @host = 'localhost', @port = 5666, @quiet = false) ->
+ constructor: (next, @host = 'localhost', @port = 5666, @quiet = false, @store = false) ->
STATES = Server.STATES
@parser = new Parser()
- @store = new Store()
@server = @createServer()
@server.listen @port, @host, =>
View
@@ -1,5 +1,5 @@
net = require 'net'
-{Server, VERSION} = require '..'
+{Server, VERSION, Store} = require '..'
{testCase} = require 'nodeunit'
module.exports = testCase
@@ -13,7 +13,7 @@ module.exports = testCase
@connection.setEncoding 'utf8'
next()
- , 'localhost', 5666, true
+ , 'localhost', 5666, true, new Store()
# Close the connection to our server, followed by the server itself
tearDown: (next) ->

0 comments on commit 98dad53

Please sign in to comment.