Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Remove test for unavailable feature #655

Merged
merged 5 commits into from
May 11, 2017
Merged
Changes from 2 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
9 changes: 6 additions & 3 deletions integration_tests/pkg/executor/remote_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,21 @@ func TestRemote(t *testing.T) {
})
}

func got(t *testing.T) {
func TestRemoteStopDetachedProcess(t *testing.T) {
Convey("I should be able to execute remote command and see the processes running", t, func() {
config := DefaultRemoteConfig()
remote, err := NewRemote("127.0.0.1", config)
if err != nil {
t.Skip("Skipping remote executor test: " + err.Error())
}

handle, err := remote.Execute("sleep inf & sleep inf")
sleepProcCount := findProcessCount("sleep")
So(sleepProcCount, ShouldEqual, 0)

handle, err := remote.Execute("sleep 1d & sleep 1d")
So(err, ShouldBeNil)

sleepProcCount := findProcessCount("sleep")
sleepProcCount = findProcessCount("sleep")
So(sleepProcCount, ShouldEqual, 2)

Convey("I should be able to stop remote task and all the processes should be terminated", func() {
Expand Down