tree-wide: use uuid.MustParse() when possible

According to the new guidelines in docs/errors.md.
This commit is contained in:
Lars Karlitski 2020-03-24 23:18:33 +01:00
parent 9625c589b0
commit ad1a12f7aa
6 changed files with 12 additions and 42 deletions

View file

@ -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 {