diff options
Diffstat (limited to 'internal/typeutils')
-rw-r--r-- | internal/typeutils/astointernal_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/typeutils/astointernal_test.go b/internal/typeutils/astointernal_test.go index fc8cd19a0..2ee2f9607 100644 --- a/internal/typeutils/astointernal_test.go +++ b/internal/typeutils/astointernal_test.go @@ -18,9 +18,11 @@ package typeutils_test import ( + "bytes" "context" "encoding/json" "fmt" + "io" "testing" "github.com/stretchr/testify/suite" @@ -39,11 +41,11 @@ func (suite *ASToInternalTestSuite) jsonToType(in string) vocab.Type { ctx := context.Background() b := []byte(in) - if accountable, err := ap.ResolveAccountable(ctx, b); err == nil { + if accountable, err := ap.ResolveAccountable(ctx, io.NopCloser(bytes.NewReader(b))); err == nil { return accountable } - if statusable, err := ap.ResolveStatusable(ctx, b); err == nil { + if statusable, err := ap.ResolveStatusable(ctx, io.NopCloser(bytes.NewReader(b))); err == nil { return statusable } |