Rev 31: The HTTPSuite wasn't actually hooked up to run anything. in http://bazaar.launchpad.net/+branch/goose

John Arbash Meinel john at arbash-meinel.com
Tue Nov 13 11:40:07 UTC 2012


At http://bazaar.launchpad.net/+branch/goose

------------------------------------------------------------
revno: 31
revision-id: john at arbash-meinel.com-20121113114001-7bunfrzub88bqret
parent: john at arbash-meinel.com-20121112100712-n33dtzbsou0dye31
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: goose
timestamp: Tue 2012-11-13 11:40:01 +0000
message:
  The HTTPSuite wasn't actually hooked up to run anything.
-------------- next part --------------
=== modified file 'testing/httpsuite/httpsuite_test.go'
--- a/testing/httpsuite/httpsuite_test.go	2012-11-01 10:33:57 +0000
+++ b/testing/httpsuite/httpsuite_test.go	2012-11-13 11:40:01 +0000
@@ -4,12 +4,16 @@
 	"io/ioutil"
 	. "launchpad.net/gocheck"
 	"net/http"
+	"testing"
 )
 
 type HTTPTestSuite struct {
 	HTTPSuite
 }
 
+func Test(t *testing.T) {
+	TestingT(t)
+}
 var _ = Suite(&HTTPTestSuite{})
 
 type HelloHandler struct{}
@@ -28,7 +32,7 @@
 	content, err := ioutil.ReadAll(response.Body)
 	response.Body.Close()
 	c.Check(err, IsNil)
-	c.Check(response.Status, Equals, "OK")
+	c.Check(response.Status, Equals, "200 OK")
 	c.Check(response.StatusCode, Equals, 200)
 	c.Check(string(content), Equals, "Hello World\n")
 }



More information about the bazaar-commits mailing list