mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
Merge pull request #116 from fkautz/pr_out_minioapi_testputobject_properly_creates_bucket_at_start_of_test
This commit is contained in:
commit
4d5e4cd46f
@ -241,6 +241,9 @@ func (s *MySuite) TestPutObject(c *C) {
|
|||||||
testServer := httptest.NewServer(httpHandler)
|
testServer := httptest.NewServer(httpHandler)
|
||||||
defer testServer.Close()
|
defer testServer.Close()
|
||||||
|
|
||||||
|
err := storage.StoreBucket("bucket")
|
||||||
|
c.Assert(err, IsNil)
|
||||||
|
|
||||||
objects, isTruncated, err := storage.ListObjects("bucket", "", 1000)
|
objects, isTruncated, err := storage.ListObjects("bucket", "", 1000)
|
||||||
c.Assert(len(objects), Equals, 0)
|
c.Assert(len(objects), Equals, 0)
|
||||||
c.Assert(isTruncated, Equals, false)
|
c.Assert(isTruncated, Equals, false)
|
||||||
|
Loading…
Reference in New Issue
Block a user