KillRemove calls Kill on the container, and then Remove if there was no error. It logs any error to t.
(t *testing.T)
| 244 | // KillRemove calls Kill on the container, and then Remove if there was |
| 245 | // no error. It logs any error to t. |
| 246 | func (c ContainerID) KillRemove(t *testing.T) { |
| 247 | if err := c.Kill(); err != nil { |
| 248 | t.Log(err) |
| 249 | return |
| 250 | } |
| 251 | if err := c.Remove(); err != nil { |
| 252 | t.Log(err) |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | // lookup retrieves the ip address of the container, and tries to reach |
| 257 | // before timeout the tcp address at this ip and given port. |