Skip to content

Commit 2c699cc

Browse files
committed
Fuzzing: Remove panics of container_fuzzer
Signed-off-by: AdamKorcz <[email protected]>
1 parent f12040b commit 2c699cc

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

contrib/fuzz/container_fuzzer.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,7 @@ func tearDown() error {
7070
// working socket.
7171
func checkIfShouldRestart(err error) {
7272
if strings.Contains(err.Error(), "daemon is not running") {
73-
err2 := deleteSocket()
74-
if err2 != nil {
75-
panic(err2)
76-
}
73+
deleteSocket()
7774
}
7875
}
7976

@@ -104,7 +101,6 @@ func startDaemon(ctx context.Context, shouldTearDown bool) {
104101
// so we panic
105102
if !strings.Contains(err.Error(), "daemon is already running") {
106103
fmt.Fprintf(os.Stderr, "%s: %s\n", err, buf.String())
107-
panic(err)
108104
}
109105
}
110106
if shouldTearDown {

0 commit comments

Comments
 (0)