Skip to content

Commit

Permalink
fix test to pass data copy
Browse files Browse the repository at this point in the history
  • Loading branch information
domenicsim1 committed Oct 31, 2024
1 parent 4895c8c commit 891c9ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions octopusdeploy_framework/resource_machine_proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
),
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 891c9ab

Please sign in to comment.