Skip to content

Commit ca8c391

Browse files
authored
🐛 fix proxy test to update back to the original (#732)
Signed-off-by: Dylan Murray <[email protected]>
1 parent fd9c5cf commit ca8c391

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/api/proxy/api_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ func TestProxyGetUpdate(t *testing.T) {
1515
}
1616

1717
// Update.
18-
update := orig
18+
update := *orig
1919
update.Host = "127.0.0.1"
2020
update.Port = 8081
2121
update.Enabled = true
22-
err = Proxy.Update(update)
22+
err = Proxy.Update(&update)
2323
if err != nil {
2424
t.Errorf(err.Error())
2525
}

0 commit comments

Comments
 (0)