From 693736b52ad1c60d84b604ca12661133e8fbbc59 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 19 Jan 2016 13:17:47 -0800 Subject: [PATCH] config: fix tests --- config/interpolate_walk_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/interpolate_walk_test.go b/config/interpolate_walk_test.go index fc7c8b549..b5c9a3a92 100644 --- a/config/interpolate_walk_test.go +++ b/config/interpolate_walk_test.go @@ -18,7 +18,9 @@ func TestInterpolationWalker_detect(t *testing.T) { Input: map[string]interface{}{ "foo": "$${var.foo}", }, - Result: nil, + Result: []string{ + "Literal(TypeString, ${var.foo})", + }, }, { @@ -114,7 +116,7 @@ func TestInterpolationWalker_replace(t *testing.T) { "foo": "$${var.foo}", }, Output: map[string]interface{}{ - "foo": "$${var.foo}", + "foo": "bar", }, Value: "bar", },