From 891c9aba7f6b0ecc385d5b3e458670a364399ead Mon Sep 17 00:00:00 2001 From: domenicsim1 Date: Thu, 31 Oct 2024 12:10:06 +1100 Subject: [PATCH] fix test to pass data copy --- octopusdeploy_framework/resource_machine_proxy_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/octopusdeploy_framework/resource_machine_proxy_test.go b/octopusdeploy_framework/resource_machine_proxy_test.go index 41e4e79a..c068516c 100644 --- a/octopusdeploy_framework/resource_machine_proxy_test.go +++ b/octopusdeploy_framework/resource_machine_proxy_test.go @@ -35,7 +35,7 @@ func TestAccMachineProxyBasic(t *testing.T) { ), }, { - Config: testMachineProxyUpdate(data, localName), + Config: testMachineProxyUpdate(*data, localName), Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr(prefix, "name", data.Name+"-updated"), ), @@ -63,10 +63,10 @@ func testMachineProxyBasic(data *proxies.Proxy, localName string) string { ) } -func testMachineProxyUpdate(data *proxies.Proxy, localName string) string { +func testMachineProxyUpdate(data proxies.Proxy, localName string) string { data.Name = data.Name + "-updated" - return testMachineProxyBasic(data, localName) + return testMachineProxyBasic(&data, localName) } func testMachineProxyDestroy(s *terraform.State) error {