mirror of
https://github.com/tailscale/tailscale.git
synced 2026-06-27 01:05:54 -04:00
tka: use a named constant to tidy up sig_test.go
Updates #cleanup Change-Id: Ib6ff2e678670ecc001207a0b8be02b035958cb88 Signed-off-by: Alex Chan <alexc@tailscale.com>
This commit is contained in:
@@ -152,7 +152,7 @@ func TestSigNested_DeepNesting(t *testing.T) {
|
||||
|
||||
outer := nestedSig
|
||||
var lastNodeKey key.NodePrivate
|
||||
for range 15 { // 15 = max nesting level for CBOR
|
||||
for range cborDecOpts.MaxNestedLevels - 1 {
|
||||
lastNodeKey = key.NewNode()
|
||||
nodeKeyPub, _ := lastNodeKey.Public().MarshalBinary()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user