remove uuid dep
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
c6c163658c
commit
cc72d7f8e5
2
go.mod
2
go.mod
@ -4,7 +4,7 @@ go 1.15
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/gabriel-vasile/mimetype v1.3.1
|
github.com/gabriel-vasile/mimetype v1.3.1
|
||||||
github.com/google/uuid v1.2.0
|
github.com/google/uuid v1.2.0 // indirect
|
||||||
github.com/minio/minio-go/v7 v7.0.13
|
github.com/minio/minio-go/v7 v7.0.13
|
||||||
github.com/unistack-org/micro/v3 v3.7.0
|
github.com/unistack-org/micro/v3 v3.7.0
|
||||||
)
|
)
|
||||||
|
@ -6,9 +6,9 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
|
||||||
"github.com/minio/minio-go/v7"
|
"github.com/minio/minio-go/v7"
|
||||||
"github.com/unistack-org/micro/v3"
|
"github.com/unistack-org/micro/v3"
|
||||||
|
"github.com/unistack-org/micro/v3/util/id"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestStore(t *testing.T) {
|
func TestStore(t *testing.T) {
|
||||||
@ -54,7 +54,7 @@ func TestStore(t *testing.T) {
|
|||||||
val := []byte("test")
|
val := []byte("test")
|
||||||
key := "key"
|
key := "key"
|
||||||
|
|
||||||
bucket := "micro-store-s3-" + uuid.New().String()
|
bucket := "micro-store-s3-" + id.New()
|
||||||
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