cleanup: cleanup codebase
monitoredproc_test.go: remove redundant break. Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
This commit is contained in:
1 parent
e5e0369e37
commit
a9063c27e9
1 file changed
-2
@@ -85,7 +85,6 @@ func TestMonitoredRestart(t *testing.T) {
|
||||
return cmd, errors.New("test failure")
|
||||
case commands == 2:
|
||||
assert.Equal(t, 1, proc.retries)
|
||||
break
|
||||
}
|
||||
return cmd, nil
|
||||
}
|
||||
@@ -100,7 +99,6 @@ func TestMonitoredRestart(t *testing.T) {
|
||||
assert.True(t, proc.monitor)
|
||||
logger.Debugf("stop monitoring")
|
||||
proc.monitor = false
|
||||
break
|
||||
}
|
||||
iter++
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user