@@ -613,7 +613,7 @@ func TestEnableDisableUnit(t *testing.T) {
613613 t .Fatal (err )
614614 }
615615
616- if install != false {
616+ if install {
617617 t .Log ("Install was true" )
618618 }
619619
@@ -668,11 +668,9 @@ func TestSystemState(t *testing.T) {
668668 case "offline" :
669669 case "unknown" :
670670 // valid systemd state - do nothing
671- break
672671
673672 default :
674673 t .Fatalf ("unexpected property value: %v" , val )
675- break
676674 }
677675}
678676
@@ -1092,7 +1090,7 @@ func checkTransientUnitRequisite(t *testing.T, trTarget TrUnitProp, trDep TrUnit
10921090 // Start the target unit
10931091 err := runStartTrUnit (t , conn , trTarget )
10941092 if err == nil {
1095- return fmt .Errorf ("Unit %s is expected to fail, but succeeded. " , trTarget .name )
1093+ return fmt .Errorf ("Unit %s is expected to fail, but succeeded" , trTarget .name )
10961094 }
10971095
10981096 unit := getUnitStatusSingle (conn , trTarget .name )
@@ -1112,7 +1110,7 @@ func checkTransientUnitRequisiteOv(t *testing.T, trTarget TrUnitProp, trDep TrUn
11121110 // Start the target unit
11131111 err := runStartTrUnit (t , conn , trTarget )
11141112 if err == nil {
1115- return fmt .Errorf ("Unit %s is expected to fail, but succeeded. " , trTarget .name )
1113+ return fmt .Errorf ("Unit %s is expected to fail, but succeeded" , trTarget .name )
11161114 }
11171115
11181116 unit := getUnitStatusSingle (conn , trTarget .name )
@@ -1476,7 +1474,7 @@ func TestMaskUnmask(t *testing.T) {
14761474 t .Fatal (err )
14771475 }
14781476
1479- if install != false {
1477+ if install {
14801478 t .Log ("Install was true" )
14811479 }
14821480
0 commit comments