From 25512e4f8121192651ed5706e585a470cb73b699 Mon Sep 17 00:00:00 2001 From: Alex Somesan Date: Tue, 26 Jul 2022 13:48:56 +0300 Subject: [PATCH] Unit test adaptations --- manifest/morph/morph_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/manifest/morph/morph_test.go b/manifest/morph/morph_test.go index 5036811230..28aa00a633 100644 --- a/manifest/morph/morph_test.go +++ b/manifest/morph/morph_test.go @@ -507,9 +507,12 @@ func TestMorphValueToType(t *testing.T) { for n, s := range samples { t.Run(n, func(t *testing.T) { r, err := ValueToType(s.In.V, s.In.T, tftypes.NewAttributePath()) - if err != nil { + if len(err) > 0 { if !s.WantErr { - t.Logf("Failed type-morphing for sample '%s': %s", n, err) + t.Logf("Failed type-morphing for sample '%s'", n) + for i := range err { + t.Logf("[%s] %s\n%s\n", err[i].Severity.String(), err[i].Summary, err[i].Detail) + } t.FailNow() } return