diff options
author | 2022-08-30 01:11:11 +0000 | |
---|---|---|
committer | 2022-08-30 01:11:13 +0000 | |
commit | 082e20655efa39edd237992cf2dc428af090b7db (patch) | |
tree | 358a8b3809a1e8e75f6a9640bcb391c114d722a5 /android/testing.go | |
parent | fb9ca5c7e28283d5b5a66ed117b1bb365111d76d (diff) |
FailIfNoMatchingErrors specify using regex
This was used nested in some code in the AIDL tests, but I didn't
realize that they were regexes, and well, I was trying to figure out
how identical strings were not identical.
Change-Id: Icf3114c84b804fb8f280251d0b11b06b623dfa90
Diffstat (limited to 'android/testing.go')
-rw-r--r-- | android/testing.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/testing.go b/android/testing.go index ef5e5a988..2b442258b 100644 --- a/android/testing.go +++ b/android/testing.go @@ -1037,7 +1037,7 @@ func FailIfNoMatchingErrors(t *testing.T, pattern string, errs []error) bool { } } if !found { - t.Errorf("missing the expected error %q (checked %d error(s))", pattern, len(errs)) + t.Errorf("could not match the expected error regex %q (checked %d error(s))", pattern, len(errs)) for i, err := range errs { t.Errorf("errs[%d] = %q", i, err) } |