mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
c435551ccc
pborman/uuid and google/uuid used to be different versions of the same package, but now pborman/uuid is a compatibility wrapper around google/uuid, maintained by the same person. Clean up some of the usage as the functions differ slightly. Not yet removed some uses of pborman/uuid in vendored code but I have PRs in process for these. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
20 lines
315 B
Go
20 lines
315 B
Go
package system
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/google/uuid"
|
|
"gotest.tools/assert"
|
|
)
|
|
|
|
func TestUUIDGeneration(t *testing.T) {
|
|
defer setupTest(t)()
|
|
|
|
c := testEnv.APIClient()
|
|
info, err := c.Info(context.Background())
|
|
assert.NilError(t, err)
|
|
|
|
_, err = uuid.Parse(info.ID)
|
|
assert.NilError(t, err)
|
|
}
|