@@ -3,7 +3,10 @@ package commands_test
3
3
import (
4
4
"errors"
5
5
"fmt"
6
+ "os"
6
7
8
+ "code.cloudfoundry.org/cli/cf/api/apifakes"
9
+ "code.cloudfoundry.org/cli/cf/api/stacks/stacksfakes"
7
10
"code.cloudfoundry.org/cli/cf/commandregistry"
8
11
"code.cloudfoundry.org/cli/cf/commands"
9
12
"code.cloudfoundry.org/cli/cf/configuration/coreconfig"
@@ -12,16 +15,10 @@ import (
12
15
"code.cloudfoundry.org/cli/cf/models"
13
16
"code.cloudfoundry.org/cli/cf/requirements"
14
17
"code.cloudfoundry.org/cli/cf/requirements/requirementsfakes"
15
-
16
- "code.cloudfoundry.org/cli/cf/api/apifakes"
17
- "code.cloudfoundry.org/cli/cf/api/stacks/stacksfakes"
18
18
testconfig "code.cloudfoundry.org/cli/cf/util/testhelpers/configuration"
19
- testterm "code.cloudfoundry.org/cli/cf/util/testhelpers/terminal"
20
-
21
- "os"
22
-
23
19
. "code.cloudfoundry.org/cli/cf/util/testhelpers/matchers"
24
- uuid "github.com/nu7hatch/gouuid"
20
+ testterm "code.cloudfoundry.org/cli/cf/util/testhelpers/terminal"
21
+ uuid "github.com/google/uuid"
25
22
. "github.com/onsi/ginkgo/v2"
26
23
. "github.com/onsi/gomega"
27
24
)
@@ -47,8 +44,7 @@ var _ = Describe("CreateAppManifest", func() {
47
44
)
48
45
49
46
BeforeEach (func () {
50
- rand , err := uuid .NewV4 ()
51
- Expect (err ).ToNot (HaveOccurred ())
47
+ rand := uuid .New ()
52
48
appName = fmt .Sprintf ("app-name-%s" , rand )
53
49
ui = & testterm.FakeUI {}
54
50
configRepo = testconfig .NewRepositoryWithDefaults ()
0 commit comments