Skip to content

Commit

Permalink
Remove deadlock handling
Browse files Browse the repository at this point in the history
  • Loading branch information
maxammann committed Feb 15, 2024
1 parent f292080 commit 5050adc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/internal/fuzz/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -489,13 +489,8 @@ func RunFuzzWorker(ctx context.Context, fn func(CorpusEntry) error) error {
srv := &workerServer{
workerComm: comm,
fuzzFn: func(e CorpusEntry) (time.Duration, error) {
timer := time.AfterFunc(10*time.Second, func() {
panic("deadlocked!") // this error message won't be printed
})
defer timer.Stop()
start := time.Now()
err := fn(e)
return time.Since(start), err
return time.Second, err
},
m: newMutator(),
}
Expand Down

0 comments on commit 5050adc

Please sign in to comment.