Skip to content

Commit 1a24b64

Browse files
committed
Fix chattiness of the test
1 parent 3dd9c26 commit 1a24b64

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pkg/tfgen/generate_schema_test.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919
"encoding/json"
2020
"fmt"
2121
"io"
22-
"os"
2322
"sort"
2423
"testing"
2524
"text/template"
@@ -247,11 +246,15 @@ func TestTypeSharing(t *testing.T) {
247246
},
248247
},
249248
}
250-
schema, err := GenerateSchema(provider, diag.DefaultSink(os.Stdout, os.Stdout, diag.FormatOptions{
249+
250+
var buf bytes.Buffer
251+
schema, err := GenerateSchema(provider, diag.DefaultSink(&buf, &buf, diag.FormatOptions{
251252
Color: colors.Never,
252253
}))
253254
require.NoError(t, err)
254255

256+
t.Logf("%s", buf.String())
257+
255258
keys := []string{}
256259
for k := range schema.Types {
257260
keys = append(keys, string(k))

0 commit comments

Comments
 (0)