mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
chore: use errors.New() instead of fmt.Errorf()
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
package daemon
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"errors"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -87,7 +87,7 @@ func TestTombTracking(t *testing.T) {
|
||||
case <-tomb.Dying():
|
||||
t.Fatalf("Dying() should not happen inside the tomb")
|
||||
case <-ch:
|
||||
return fmt.Errorf("crashing")
|
||||
return errors.New("crashing")
|
||||
}
|
||||
return nil
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user