mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-23 00:56:20 +00:00
all: don't rebind variables in for loops
See https://tip.golang.org/wiki/LoopvarExperiment#does-this-mean-i-dont-have-to-write-x--x-in-my-loops-anymore Updates https://github.com/tailscale/tailscale/issues/11058 Signed-off-by: Alex Chan <alexc@tailscale.com>
This commit is contained in:
@@ -333,7 +333,6 @@ func TestOneNodeUpAuth(t *testing.T) {
|
||||
tstest.Shard(t)
|
||||
|
||||
for _, useSeamlessKeyRenewal := range []bool{true, false} {
|
||||
tt := tt // subtests are run in parallel, rebind tt
|
||||
t.Run(fmt.Sprintf("%s-seamless-%t", tt.name, useSeamlessKeyRenewal), func(t *testing.T) {
|
||||
tstest.Parallel(t)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user