try delete-on-failure option

pull/11666/head
Ilya Zuyev 2021-06-14 21:44:02 -07:00
parent dd5d8a36e6
commit 1046898a63
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ func TestRunningBinaryUpgrade(t *testing.T) {
t.Fatalf("legacy %s start failed: %v", legacyVersion, err)
}
args = append([]string{"start", "-p", profile, "--memory=2200", "--alsologtostderr", "-v=1"}, StartArgs()...)
args = append([]string{"start", "-p", profile, "--memory=2200", "--delete-on-failure=true", "--alsologtostderr", "-v=1"}, StartArgs()...)
rr, err = Run(t, exec.CommandContext(ctx, Target(), args...))
if err != nil {
t.Fatalf("upgrade from %s to HEAD failed: %s: %v", legacyVersion, rr.Command(), err)