Do not use the global logger but pass instead the locally created logger. This means the test output is silent again. Sadly using the global logger is difficult because it is a global resource so replacing it in tests means all tests (that are potentially run in parallel) will write to it which makes testing specific log output hard. |
||
|---|---|---|
| .. | ||
| build_result.go | ||
| config.go | ||
| export_test.go | ||
| handler_build.go | ||
| handler_build_test.go | ||
| handler_result.go | ||
| handler_result_test.go | ||
| handler_root.go | ||
| handler_root_test.go | ||
| main.go | ||
| main_test.go | ||
| routes.go | ||