From 141ab6adde88656b4192cd0aa44572bb93a8620c Mon Sep 17 00:00:00 2001 From: Alix Date: Wed, 4 Oct 2023 20:19:54 +0000 Subject: [PATCH] use message in android.AssertStringMatches() function does not currently use the message argument passed to it. outputting this as part of the error message would be helpful for any failures. Change-Id: I5307df1567e79d85f81edd5a9eb3d4a093041535 --- android/test_asserts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/test_asserts.go b/android/test_asserts.go index 3a2cb1ad9..c33ade5a2 100644 --- a/android/test_asserts.go +++ b/android/test_asserts.go @@ -148,7 +148,7 @@ func AssertStringMatches(t *testing.T, message, s, expectedRex string) { return } if !ok { - t.Errorf("%s does not match regular expression %s", s, expectedRex) + t.Errorf("%s: %s does not match regular expression %s", message, s, expectedRex) } }