Signed-off-by: John Howard <jhoward@microsoft.com>
| ... | ... |
@@ -164,7 +164,10 @@ func (s *DockerSuite) TestRestartContainerwithGoodContainer(c *check.C) {
|
| 164 | 164 |
} |
| 165 | 165 |
|
| 166 | 166 |
func (s *DockerSuite) TestRestartContainerSuccess(c *check.C) {
|
| 167 |
- testRequires(c, testEnv.IsLocalDaemon) |
|
| 167 |
+ // Skipped for Hyper-V isolated containers. Test is currently written |
|
| 168 |
+ // such that it assumes there is a host process to kill. In Hyper-V |
|
| 169 |
+ // containers, the process is inside the utility VM, not on the host. |
|
| 170 |
+ testRequires(c, testEnv.IsLocalDaemon, IsolationIsProcess) |
|
| 168 | 171 |
|
| 169 | 172 |
out := runSleepingContainer(c, "-d", "--restart=always") |
| 170 | 173 |
id := strings.TrimSpace(out) |
| ... | ... |
@@ -234,7 +237,10 @@ func (s *DockerSuite) TestRestartWithPolicyUserDefinedNetwork(c *check.C) {
|
| 234 | 234 |
} |
| 235 | 235 |
|
| 236 | 236 |
func (s *DockerSuite) TestRestartPolicyAfterRestart(c *check.C) {
|
| 237 |
- testRequires(c, testEnv.IsLocalDaemon) |
|
| 237 |
+ // Skipped for Hyper-V isolated containers. Test is currently written |
|
| 238 |
+ // such that it assumes there is a host process to kill. In Hyper-V |
|
| 239 |
+ // containers, the process is inside the utility VM, not on the host. |
|
| 240 |
+ testRequires(c, testEnv.IsLocalDaemon, IsolationIsProcess) |
|
| 238 | 241 |
|
| 239 | 242 |
out := runSleepingContainer(c, "-d", "--restart=always") |
| 240 | 243 |
id := strings.TrimSpace(out) |