From 99a3e9cf0a1f01da0fbc7b2ebbd532660365d71e Mon Sep 17 00:00:00 2001 From: Pratyush singhal Date: Tue, 11 Jun 2019 16:47:16 +0530 Subject: [PATCH] chore: update tests for createInstaceMetadata Signed-off-by: Pratyush singhal --- builder/googlecompute/step_create_instance_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/googlecompute/step_create_instance_test.go b/builder/googlecompute/step_create_instance_test.go index e56159138..8468fd92e 100644 --- a/builder/googlecompute/step_create_instance_test.go +++ b/builder/googlecompute/step_create_instance_test.go @@ -303,7 +303,7 @@ func TestCreateInstanceMetadata(t *testing.T) { key := "abcdefgh12345678" // create our metadata - metadata, err := c.createInstanceMetadata(image, key) + metadata, err := c.createInstanceMetadata(image, key, state) assert.True(t, err == nil, "Metadata creation should have succeeded.") @@ -318,7 +318,7 @@ func TestCreateInstanceMetadata_noPublicKey(t *testing.T) { sshKeys := c.Metadata["sshKeys"] // create our metadata - metadata, err := c.createInstanceMetadata(image, "") + metadata, err := c.createInstanceMetadata(image, "", state) assert.True(t, err == nil, "Metadata creation should have succeeded.")