From 21d0312f80ace53b0662d795317780fb30e2bdef Mon Sep 17 00:00:00 2001 From: Joe Leon Date: Wed, 30 Oct 2024 12:13:05 -0400 Subject: [PATCH] updated test --- pkg/handlers/apk_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/handlers/apk_test.go b/pkg/handlers/apk_test.go index 135885c1cbf4..a53cbf3b77d2 100644 --- a/pkg/handlers/apk_test.go +++ b/pkg/handlers/apk_test.go @@ -23,8 +23,10 @@ func TestAPKHandler(t *testing.T) { }{ "apk_with_3_leaked_keys": { "https://github.com/joeleonjr/leakyAPK/raw/refs/heads/main/aws_leak.apk", - 401, - 3, + 499, + // Note: the secret count is 4 instead of 3 b/c we're not actually running the secret detection engine, + // we're just looking for a string match. There is one extra string match in the APK (but only 3 detected secrets). + 4, "AKIA2UC3BSXMLSCLTUUS", false, },