provisioners/local-exec: tests pass on Windows due to line-endings diff
/cc @armon
This commit is contained in:
parent
10146a79b1
commit
01b58669b0
|
@ -3,6 +3,7 @@ package localexec
|
|||
import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/hashicorp/terraform/config"
|
||||
|
@ -31,8 +32,10 @@ func TestResourceProvider_Apply(t *testing.T) {
|
|||
t.Fatalf("err: %v", err)
|
||||
}
|
||||
|
||||
if string(raw) != "foo\n" {
|
||||
t.Fatalf("bad: %s", raw)
|
||||
actual := strings.TrimSpace(string(raw))
|
||||
expected := "foo"
|
||||
if actual != expected {
|
||||
t.Fatalf("bad: %#v", actual)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue