tree-wide: use uuid.MustParse() when possible
According to the new guidelines in docs/errors.md.
This commit is contained in:
parent
9625c589b0
commit
ad1a12f7aa
6 changed files with 12 additions and 42 deletions
|
|
@ -39,7 +39,7 @@ func TestBasic(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestCreate(t *testing.T) {
|
||||
id, _ := uuid.Parse("ffffffff-ffff-ffff-ffff-ffffffffffff")
|
||||
id := uuid.MustParse("ffffffff-ffff-ffff-ffff-ffffffffffff")
|
||||
distroStruct := fedoratest.New()
|
||||
arch, err := distroStruct.GetArch("x86_64")
|
||||
if err != nil {
|
||||
|
|
@ -62,7 +62,7 @@ func TestCreate(t *testing.T) {
|
|||
}
|
||||
|
||||
func testUpdateTransition(t *testing.T, from, to string, expectedStatus int, expectedResponse string) {
|
||||
id, _ := uuid.Parse("ffffffff-ffff-ffff-ffff-ffffffffffff")
|
||||
id := uuid.MustParse("ffffffff-ffff-ffff-ffff-ffffffffffff")
|
||||
distroStruct := fedoratest.New()
|
||||
arch, err := distroStruct.GetArch("x86_64")
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue