Permalink
Browse files

Fixed the test for relative redirects to actually verify the results.

  • Loading branch information...
1 parent d256939 commit 5b07b1f856331f15860269475ad07c3226e24213 @slaskis slaskis committed Jul 15, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/test-open-uri.js
View
@@ -223,10 +223,10 @@ exports["Stream a text file from ftp to a file"] = function(beforeExit){
exports["GET a redirect with a relative Location"] = function(beforeExit){
var loaded = false;
- open("http://golang.org/cmd/5a",function(err,go){
+ open("http://golang.org/cmd/5a",function(err,go,res){
loaded = true
- assert.ok(err)
- console.log(go)
+ assert.ifError(err)
+ assert.includes(go,'<title>Command 5a - The Go Programming Language</title>')
})
beforeExit(function(){assert.ok(loaded)})
}

0 comments on commit 5b07b1f

Please sign in to comment.