Skip to content

Commit cd71545

Browse files
trakhimenokclaude
andcommitted
fix(botstoken): drop ineffectual assignment in exact-64-byte test
Was blocking main CI (and therefore the release tags) since the Go 1.25 standardization push. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LipBTY2YeDYJEWvmATgdDJ
1 parent 2c82a60 commit cd71545

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

botstoken/token_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,8 @@ func TestEncode_exact64Bytes(t *testing.T) {
5252
// Craft an input whose raw encoding is exactly 64 bytes.
5353
// "v\ts" = 3 bytes, so the remaining 61 bytes fill subject.
5454
verb := "v"
55-
subject := strings.Repeat("x", 61)
56-
raw := verb + "\t" + subject // 1 + 1 + 61 = 63 bytes — add a char to reach 64
57-
subject = strings.Repeat("x", 62)
58-
raw = verb + "\t" + subject
55+
subject := strings.Repeat("x", 62)
56+
raw := verb + "\t" + subject // 1 + 1 + 62 = 64 bytes
5957
assert.Equal(t, 64, len(raw))
6058

6159
tok, err := botstoken.Encode(verb, subject, nil)

0 commit comments

Comments
 (0)