mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
13b7d11be1
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
20 lines
322 B
Go
20 lines
322 B
Go
package system
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/pborman/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)
|
|
|
|
id := uuid.Parse(info.ID)
|
|
assert.Equal(t, id != nil, true)
|
|
}
|