From 92f83982db96f5038b2c4550bf7b6081e1e3f815 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Fri, 6 Feb 2015 20:47:21 -0800 Subject: [PATCH] Changes to tests pending from #142 --- pkg/api/minioapi/minioapi_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/api/minioapi/minioapi_test.go b/pkg/api/minioapi/minioapi_test.go index 9ef7d88ab..d65751f3c 100644 --- a/pkg/api/minioapi/minioapi_test.go +++ b/pkg/api/minioapi/minioapi_test.go @@ -221,7 +221,7 @@ func (s *MySuite) TestPutBucket(c *C) { c.Assert(len(buckets), Equals, 0) c.Assert(err, IsNil) - request, err := http.NewRequest("PUT", testServer.URL+"/bucket/", bytes.NewBufferString("")) + request, err := http.NewRequest("PUT", testServer.URL+"/bucket", bytes.NewBufferString("")) c.Assert(err, IsNil) client := http.Client{} @@ -250,7 +250,7 @@ func (s *MySuite) TestPutObject(c *C) { date1 := time.Now() // Put Bucket before - Put Object into a bucket - request, err := http.NewRequest("PUT", testServer.URL+"/bucket/", bytes.NewBufferString("")) + request, err := http.NewRequest("PUT", testServer.URL+"/bucket", bytes.NewBufferString("")) c.Assert(err, IsNil) client := http.Client{} @@ -399,7 +399,7 @@ func (s *MySuite) TestXMLNameNotInObjectListJson(c *C) { err := storage.StoreBucket("foo") c.Assert(err, IsNil) - request, err := http.NewRequest("GET", testServer.URL+"/foo/", bytes.NewBufferString("")) + request, err := http.NewRequest("GET", testServer.URL+"/foo", bytes.NewBufferString("")) c.Assert(err, IsNil) request.Header.Add("Accept", "application/json")