Skip to content

Commit 5f7535f

Browse files
author
Arunesh Dwivedi
committed
fix(gatewayapi): declare chainData locally in expired-leaf test
The expired-leaf unit test referenced chainData without declaring it, so the gatewayapi package failed to compile and broke lint, gen-check and coverage. Declare it as a local slice so the test builds and verifies the leaf-expiry rejection path. Signed-off-by: Arunesh Dwivedi <[email protected]>
1 parent f271491 commit 5f7535f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎internal/gatewayapi/tls_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ func TestFilterValidCertificates_ExpiredLeafWithValidChain(t *testing.T) {
454454
expiredCertPEM := pem.EncodeToMemory(&pem.Block{Type: "CERTIFICATE", Bytes: expiredCertDER})
455455

456456
// Chain: expired leaf + valid intermediate
457-
chainData = append(expiredCertPEM, validCertPEM...)
457+
chainData := append(expiredCertPEM, validCertPEM...)
458458

459459
// The entire chain should be rejected because the leaf is expired
460460
result, listenerErr := filterValidCertificates(chainData)

0 commit comments

Comments
 (0)