Skip to content

Commit

Permalink
test(server): use same location when testing network updates (#914)
Browse files Browse the repository at this point in the history
Using a different location will force deleting the server and creating a
new one, instead of updating the same server.

Co-authored-by: Julian Tölle <julian.toelle@hetzner-cloud.de>
  • Loading branch information
jooola and apricote authored Apr 18, 2024
1 parent a8c5cee commit 6f8e353
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/server/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,11 +339,11 @@ func TestServerResource_DirectAttachToNetwork(t *testing.T) {
snw2Res.SetRName("test-network-subnet-2")

sRes := &server.RData{
Name: "server-direct-attach",
Type: teste2e.TestServerType,
Datacenter: teste2e.TestDataCenter,
Image: teste2e.TestImage,
SSHKeys: []string{sk.TFID() + ".id"},
Name: "server-direct-attach",
Type: teste2e.TestServerType,
LocationName: teste2e.TestLocationName,
Image: teste2e.TestImage,
SSHKeys: []string{sk.TFID() + ".id"},
}
sRes.SetRName(sRes.Name)

Expand Down

0 comments on commit 6f8e353

Please sign in to comment.