8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0de5df2 commit 2b77b8eCopy full SHA for 2b77b8e
vpn/tunnel_internal_test.go
@@ -19,6 +19,8 @@ import (
19
20
"github.com/coder/quartz"
21
22
+ "maps"
23
+
24
"github.com/coder/coder/v2/tailnet"
25
"github.com/coder/coder/v2/tailnet/proto"
26
"github.com/coder/coder/v2/testutil"
@@ -880,9 +882,7 @@ func TestProcessFreshState(t *testing.T) {
880
882
originalDeletedWorkspacesLen := len(tt.update.DeletedWorkspaces)
881
883
884
agentsCopy := make(map[uuid.UUID]tailnet.Agent)
- for k, v := range tt.initialAgents {
- agentsCopy[k] = v
885
- }
+ maps.Copy(agentsCopy, tt.initialAgents)
886
887
processFreshState(tt.update, agentsCopy)
888
0 commit comments