test(invocation): adds schema round-trip test

This commit is contained in:
Steve Moyer
2024-11-05 08:39:43 -05:00
parent d89fb395e3
commit d754c5837b
2 changed files with 0 additions and 3 deletions

View File

@@ -135,8 +135,6 @@ func prettyDAGJSON(data []byte) (string, error) {
return "", err
}
fmt.Println(string(jsonData))
var out bytes.Buffer
if err := json.Indent(&out, jsonData, "", " "); err != nil {
return "", err

View File

@@ -79,7 +79,6 @@ func TestSchemaRoundTrip(t *testing.T) {
assert.JSONEq(t, string(invocationJson), readJson.String())
})
}
func privKey(t require.TestingT, privKeyCfg string) crypto.PrivKey {
privKeyMar, err := crypto.ConfigDecodeKey(privKeyCfg)
require.NoError(t, err)