Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private RestartPolicy(int maximumRetryCount, String name) {
* Do not restart the container if it dies. (default)
*/
public static RestartPolicy noRestart() {
return new RestartPolicy();
return new RestartPolicy(0, "no");
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class RestartPolicySerializingTest {
// --restart no
public void noRestart() throws Exception {
String json = JSONTestHelper.getMapper().writeValueAsString(RestartPolicy.noRestart());
assertEquals("{\"MaximumRetryCount\":0,\"Name\":\"\"}", json);
assertEquals("{\"MaximumRetryCount\":0,\"Name\":\"no\"}", json);
}

@Test
Expand Down