Use a better uuid library

This commit is contained in:
Jonathan Leibiusky @xetorthio
2017-11-14 16:42:02 -03:00
parent 3f5b3882dd
commit 4e09a76d64
7 changed files with 19 additions and 19 deletions

View File

@@ -10,9 +10,9 @@ import (
"github.com/play-with-docker/play-with-docker/provisioner"
"github.com/play-with-docker/play-with-docker/pwd/types"
"github.com/play-with-docker/play-with-docker/storage"
"github.com/satori/go.uuid"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/twinj/uuid"
)
func TestPlaygroundNew(t *testing.T) {
@@ -35,7 +35,7 @@ func TestPlaygroundNew(t *testing.T) {
assert.Nil(t, e)
assert.NotNil(t, playground)
expectedPlayground.Id = uuid.NewV5(uuid.NameSpaceURL, uuid.Name("localhost")).String()
expectedPlayground.Id = uuid.NewV5(uuid.NamespaceOID, "localhost").String()
assert.Equal(t, expectedPlayground, *playground)
_d.AssertExpectations(t)