cleanup: cleanup codebase

monitoredproc_test.go: remove redundant break.

Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
This commit is contained in:
Guangming Wang committed 2019-11-07 19:45:39 +08:00
1 parent e5e0369e37
commit a9063c27e9
1 file changed
-2
-2
View File
@@ -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++
}