From a8eef13835f7afb8a2b248fcace930bc680e640f Mon Sep 17 00:00:00 2001 From: "Frederick F. Kautz IV" Date: Sun, 1 Feb 2015 14:46:45 -0800 Subject: [PATCH] Minioapi TestPutObject properly creates bucket at start of test --- pkg/api/minioapi/minioapi_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/api/minioapi/minioapi_test.go b/pkg/api/minioapi/minioapi_test.go index a0f12ab66..6ad82efa8 100644 --- a/pkg/api/minioapi/minioapi_test.go +++ b/pkg/api/minioapi/minioapi_test.go @@ -241,6 +241,9 @@ func (s *MySuite) TestPutObject(c *C) { testServer := httptest.NewServer(httpHandler) defer testServer.Close() + err := storage.StoreBucket("bucket") + c.Assert(err, IsNil) + objects, isTruncated, err := storage.ListObjects("bucket", "", 1000) c.Assert(len(objects), Equals, 0) c.Assert(isTruncated, Equals, false)