databricks-cli/lib/spawn/exec_test.go

15 lines
254 B
Go
Raw Normal View History

2022-10-31 11:09:52 +00:00
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")
}