mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
Minioapi TestPutObject properly creates bucket at start of test
This commit is contained in:
parent
afd574af20
commit
a8eef13835
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user