fix the test suite for 0.10.0
This commit is contained in:
parent
947705ad1e
commit
cbfb9b010b
2 changed files with 8 additions and 6 deletions
12
Makefile
12
Makefile
|
@ -85,13 +85,13 @@ test: $(NODEUNIT)
|
|||
# Note: 'test08' is last so (if all is well) I end up with a binary
|
||||
# dtrace-provider build for node 0.8 (my current version).
|
||||
.PHONY: testall
|
||||
testall: test06 test08
|
||||
testall: test06 test10 test08
|
||||
|
||||
.PHONY: test09
|
||||
test09:
|
||||
@echo "# Test node 0.9.x (with node `$(NODEOPT)/node-0.9/bin/node --version`)"
|
||||
@$(NODEOPT)/node-0.9/bin/node --version
|
||||
PATH="$(NODEOPT)/node-0.9/bin:$(PATH)" make distclean all test
|
||||
.PHONY: test10
|
||||
test10:
|
||||
@echo "# Test node 0.10.x (with node `$(NODEOPT)/node-0.10/bin/node --version`)"
|
||||
@$(NODEOPT)/node-0.10/bin/node --version
|
||||
PATH="$(NODEOPT)/node-0.10/bin:$(PATH)" make distclean all test
|
||||
.PHONY: test08
|
||||
test08:
|
||||
@echo "# Test node 0.8.x (with node `$(NODEOPT)/node-0.8/bin/node --version`)"
|
||||
|
|
|
@ -66,6 +66,7 @@ test('req serializer', function (t) {
|
|||
})
|
||||
server.listen(8765, function () {
|
||||
http.get({host: '127.0.0.1', port: 8765, path: '/'}, function(res) {
|
||||
res.resume();
|
||||
log.info({req: theReq}, 'the request');
|
||||
var lastRecord = records[records.length-1];
|
||||
t.equal(lastRecord.req.method, 'GET');
|
||||
|
@ -123,6 +124,7 @@ test('res serializer', function (t) {
|
|||
})
|
||||
server.listen(8765, function () {
|
||||
http.get({host: '127.0.0.1', port: 8765, path: '/'}, function(res) {
|
||||
res.resume();
|
||||
log.info({res: theRes}, 'the response');
|
||||
var lastRecord = records[records.length-1];
|
||||
t.equal(lastRecord.res.statusCode, theRes.statusCode);
|
||||
|
|
Loading…
Reference in a new issue