Fix communicator test

This commit is contained in:
Fábio Matavelli 2020-02-12 10:06:30 +00:00
parent c9ea93308a
commit 18f72b1cb7
1 changed files with 9 additions and 1 deletions

View File

@ -691,6 +691,7 @@ func TestScriptPath(t *testing.T) {
Ephemeral: terraform.EphemeralState{
ConnInfo: map[string]string{
"type": "ssh",
"host": "127.0.0.1",
"script_path": tc.Input,
},
},
@ -715,7 +716,14 @@ func TestScriptPath_randSeed(t *testing.T) {
// Pre GH-4186 fix, this value was the deterministic start the pseudorandom
// chain of unseeded math/rand values for Int31().
staticSeedPath := "/tmp/terraform_1298498081.sh"
c, err := New(&terraform.InstanceState{})
c, err := New(&terraform.InstanceState{
Ephemeral: terraform.EphemeralState{
ConnInfo: map[string]string{
"type": "ssh",
"host": "127.0.0.1",
},
},
})
if err != nil {
t.Fatalf("err: %s", err)
}