Skip to content

Commit ed3c8fa

Browse files
generatedunixname2655515034848748meta-codesync[bot]
authored andcommitted
fbcode/openbmc/openbmc/tools/flashy/checks_and_remediations/common/91_expose_real_flash0_on_secondary_boot_g6_test.go
Reviewed By: echistyakov Differential Revision: D92946802 fbshipit-source-id: 6271b92a9c0efc1b3641af4052cc624652f58430
1 parent e760ed4 commit ed3c8fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/flashy/checks_and_remediations/common/91_expose_real_flash0_on_secondary_boot_g6_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ package common
2121

2222
import (
2323
"bytes"
24-
"github.com/pkg/errors"
24+
"fmt"
2525
"log"
2626
"regexp"
2727
"testing"
@@ -65,7 +65,7 @@ func TestExposeRealFlash0OnSecondaryBootAstG6(t *testing.T) {
6565
GetMachineOrig := utils.GetMachine
6666
defer func() { utils.GetMachine = GetMachineOrig }()
6767

68-
ResetFMC_WDT2 = func(mem []byte) error { return errors.Errorf("Should not have been called") }
68+
ResetFMC_WDT2 = func(mem []byte) error { return fmt.Errorf("Should not have been called") }
6969
utils.GetMachine = func() (string, error) { return "armv7l", nil }
7070

7171
res := ExposeRealFlash0OnSecondaryBootG6(step.StepParams{})
@@ -140,7 +140,7 @@ func TestExposeRealFlash0OnSecondaryBootAstG6(t *testing.T) {
140140

141141
res := ExposeRealFlash0OnSecondaryBootG6(step.StepParams{})
142142

143-
expectedError := step.ExitSafeToReboot{Err: errors.Errorf("Unable to clear WDT2 second boot code flag @ 0x0, current value = 0xea0010")}
143+
expectedError := step.ExitSafeToReboot{Err: fmt.Errorf("Unable to clear WDT2 second boot code flag @ 0x0, current value = 0xea0010")}
144144

145145
step.CompareTestExitErrors(expectedError, res, t)
146146

0 commit comments

Comments
 (0)