File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -69,9 +69,10 @@ func TestRunCreate_realAPI(t *testing.T) {
6969 err := RunCreate (* scopedCtx , args )
7070 So (err , ShouldBeNil )
7171 So (scopedStderr .String (), ShouldBeEmpty )
72- So (scopedStdout .String (), shouldBeAnUUID )
7372
7473 uuid := strings .TrimSpace (scopedStdout .String ())
74+ So (uuid , shouldBeAnUUID )
75+
7576 createdUUIDs = append (createdUUIDs , uuid )
7677 })
7778
Original file line number Diff line number Diff line change @@ -15,8 +15,7 @@ import (
1515func shouldBeAnUUID (actual interface {}, expected ... interface {}) string {
1616 input := actual .(string )
1717 input = strings .TrimSpace (input )
18- uuid := anonuuid .IsUUID (input )
19- if uuid == nil {
18+ if err := anonuuid .IsUUID (input ); err != nil {
2019 return fmt .Sprintf ("%q should be an UUID" , actual )
2120 }
2221 return ""
You can’t perform that action at this time.
0 commit comments