core: logDiagnostics test helper must call t.Helper()

This commit is contained in:
Martin Atkins 2018-09-11 16:27:13 -07:00
parent 6b1430a2b3
commit 084e25c60a
1 changed files with 1 additions and 0 deletions

View File

@ -972,6 +972,7 @@ func assertNoErrors(t *testing.T, diags tfdiags.Diagnostics) {
// assertNoDiagnostics and assertNoErrors for more specific helpers that can
// also fail the test.
func logDiagnostics(t *testing.T, diags tfdiags.Diagnostics) {
t.Helper()
for _, diag := range diags {
desc := diag.Description()
rng := diag.Source()