all: use Go 1.22 range-over-int
Updates #11058 Change-Id: I35e7ef9b90e83cac04ca93fd964ad00ed5b48430 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
068db1f972
commit
7c1d6e35a5
@@ -25,7 +25,7 @@ import (
|
||||
var (
|
||||
// ErrDefunctProcess is returned by (*UniqueProcess).AsRestartableProcess
|
||||
// when the process no longer exists.
|
||||
ErrDefunctProcess = errors.New("process is defunct")
|
||||
ErrDefunctProcess = errors.New("process is defunct")
|
||||
// ErrProcessNotRestartable is returned by (*UniqueProcess).AsRestartableProcess
|
||||
// when the process has previously indicated that it must not be restarted
|
||||
// during a patch/upgrade.
|
||||
|
||||
@@ -67,7 +67,7 @@ func testRestartableProcessesImpl(N int, t *testing.T) {
|
||||
const binary = "testrestartableprocesses"
|
||||
fq := pathToTestProg(t, binary)
|
||||
|
||||
for i := 0; i < N; i++ {
|
||||
for range N {
|
||||
startTestProg(t, binary, "RestartableProcess")
|
||||
}
|
||||
t.Cleanup(func() {
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ import "os"
|
||||
|
||||
var (
|
||||
cmds = map[string]func(){}
|
||||
err error
|
||||
err error
|
||||
)
|
||||
|
||||
func register(name string, f func()) {
|
||||
|
||||
Reference in New Issue
Block a user