testes: remove TestDockerDriver_Kill

We already have two other Kill tests (e.g.
TestDockerDriver_Start_Kill_Wait and
TestDockerDriver_Start_KillTimeout), so don't need yet another flaky
test.
This commit is contained in:
Mahmood Ali
2018-12-15 14:42:40 -05:00
parent f248fefdbf
commit 119aabe77b

View File

@@ -2402,36 +2402,6 @@ func TestDockerDriver_Entrypoint(t *testing.T) {
require.Equal(t, entrypoint, container.Config.Entrypoint, "Incorrect entrypoint ")
}
func TestDockerDriver_Kill(t *testing.T) {
require := require.New(t)
if !tu.IsTravis() {
t.Parallel()
}
if !testutil.DockerIsConnected(t) {
t.Skip("Docker not connected")
}
// Tasks started with a signal that is not supported should not error
task := &drivers.TaskConfig{
ID: uuid.Generate(),
Name: "nc-demo",
Resources: basicResources,
}
cfg := &TaskConfig{
Image: busyboxImageID,
LoadImage: "busybox.tar",
Command: busyboxLongRunningCmd[0],
Args: busyboxLongRunningCmd[1:],
}
require.NoError(task.EncodeConcreteDriverConfig(cfg))
_, driver, handle, cleanup := dockerSetup(t, task)
defer cleanup()
require.NoError(driver.WaitUntilStarted(task.ID, 5*time.Second))
require.NoError(handle.Kill(time.Second, os.Interrupt))
}
func TestDockerDriver_ReadonlyRootfs(t *testing.T) {
if !tu.IsTravis() {
t.Parallel()