fix test
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
cc72d7f8e5
commit
5b472be4d0
@ -54,7 +54,11 @@ func TestStore(t *testing.T) {
|
|||||||
val := []byte("test")
|
val := []byte("test")
|
||||||
key := "key"
|
key := "key"
|
||||||
|
|
||||||
bucket := "micro-store-s3-" + id.New()
|
uid, err := id.New()
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
bucket := "micro-store-s3-" + uid
|
||||||
if err := s.Write(ctx, key, val, WriteBucket(bucket), ContentType("text/plain")); err != nil {
|
if err := s.Write(ctx, key, val, WriteBucket(bucket), ContentType("text/plain")); err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user