From 91859e46984eed32d322287752cd1cfcd8b62974 Mon Sep 17 00:00:00 2001 From: Jose Date: Mon, 2 Oct 2023 10:34:34 -0500 Subject: [PATCH] fix test error --- field/composite_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/field/composite_test.go b/field/composite_test.go index 7993927..e32f79a 100644 --- a/field/composite_test.go +++ b/field/composite_test.go @@ -597,7 +597,7 @@ func TestCompositePacking(t *testing.T) { }) require.Error(t, err) - require.EqualError(t, err, "failed to set data from field 1: data does not match required *String type") + require.EqualError(t, err, "failed to set data from field 1: data does not match required *String or (string, *string, int, *int) type") }) t.Run("Pack returns error on failure of subfield packing", func(t *testing.T) { @@ -747,7 +747,7 @@ func TestCompositePacking(t *testing.T) { err = composite.Unmarshal(data) require.Error(t, err) - require.EqualError(t, err, "failed to get data from field 1: data does not match required *String type") + require.EqualError(t, err, "failed to get data from field 1: data does not match required *String or *string type") }) t.Run("Unpack returns an error on failure of subfield to unpack bytes", func(t *testing.T) {