From d754c5837bb7f89e37266720050da82d81e223af Mon Sep 17 00:00:00 2001 From: Steve Moyer Date: Tue, 5 Nov 2024 08:39:43 -0500 Subject: [PATCH] test(invocation): adds schema round-trip test --- token/invocation/examples_test.go | 2 -- token/invocation/schema_test.go | 1 - 2 files changed, 3 deletions(-) diff --git a/token/invocation/examples_test.go b/token/invocation/examples_test.go index 1f2e713..ce1743f 100644 --- a/token/invocation/examples_test.go +++ b/token/invocation/examples_test.go @@ -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 diff --git a/token/invocation/schema_test.go b/token/invocation/schema_test.go index 77b1afb..92483ac 100644 --- a/token/invocation/schema_test.go +++ b/token/invocation/schema_test.go @@ -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)