Skip to content

Commit

Permalink
add test assert
Browse files Browse the repository at this point in the history
  • Loading branch information
VenelinMartinov committed Feb 11, 2025
1 parent d099de2 commit af7fd3c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkg/tfbridge/detailed_diff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,13 @@ func runDetailedDiffTest(
expected map[string]*pulumirpc.PropertyDiff,
) {
t.Helper()
actual := MakeDetailedDiffV2(context.Background(), tfs, ps, old, new, new, nil)

ctx := context.Background()
buf := &bytes.Buffer{}
ctx = logging.InitLogging(ctx, logging.LogOptions{
LogSink: &testLogSink{buf},
})
actual := MakeDetailedDiffV2(ctx, tfs, ps, old, new, new, nil)
require.Empty(t, buf.String())
require.Equal(t, expected, actual)
}

Expand Down

0 comments on commit af7fd3c

Please sign in to comment.