mirror of https://github.com/databricks/cli.git
15 lines
254 B
Go
15 lines
254 B
Go
|
package spawn
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
|
||
|
func TestExecAndPassError(t *testing.T) {
|
||
|
_, err := ExecAndPassErr(context.Background(), "which", "__non_existing__")
|
||
|
assert.EqualError(t, err, "exit status 1")
|
||
|
}
|