func TestWorkingBinaryExecutor(t *testing.T) { _, err := jobworker.ExecuteBinary("ls", "-a") if err != nil { t.Error(err) } }
func TestFailingBinaryExecutor(t *testing.T) { _, err := jobworker.ExecuteBinary("lssdsd", "-a") if err == nil { t.Error("Expected an error.") } }