GoogleCloudPlatform / golang-samples

Sample apps and code written for Google Cloud in the Go programming language.
Apache License 2.0
4.32k stars 1.75k forks source link

fix(dlp): use log for output during tests. #4285

Closed muncus closed 3 months ago

muncus commented 3 months ago

writing directly to stdout interferes with test framework output, leading to false negatives (tests are reported as failing when they pass)

Description

Fixes #

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

muncus commented 3 months ago

kokoro test failure is due to the lack of .go files in the testdata directory. since its unrelated i'll merge this.