Skip to content

Commit

Permalink
Fix unstable test
Browse files Browse the repository at this point in the history
  • Loading branch information
wata727 committed Mar 19, 2017
1 parent 9c46ed3 commit e1d0fd4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions evaluator/variable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,15 @@ variable "stat" {
func TestDecodeTFVars(t *testing.T) {
cases := []struct {
Name string
Input map[string]string
Input []string
Result []map[string]interface{}
Error bool
}{
{
Name: "decode multi tfvars",
Input: map[string]string{
"terraform.tfvars": `type = "t2.micro"`,
"example.tfvars": `name = "test"`,
Input: []string{
`type = "t2.micro"`,
`name = "test"`,
},
Result: []map[string]interface{}{
{
Expand All @@ -168,8 +168,7 @@ func TestDecodeTFVars(t *testing.T) {
},
{
Name: "decode complex tfvars",
Input: map[string]string{
"terraform.tfvars": `
Input: []string{`
types = ["t2.nano", "t2.micro"]
complex = {
foo = "bar"
Expand Down

0 comments on commit e1d0fd4

Please sign in to comment.