From acef9c772b375d3771751a0576844398e3cb75dc Mon Sep 17 00:00:00 2001 From: odubajDT Date: Tue, 7 Jan 2025 14:20:21 +0100 Subject: [PATCH] polish Signed-off-by: odubajDT --- pkg/ottl/ottlfuncs/func_flatten_test.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkg/ottl/ottlfuncs/func_flatten_test.go b/pkg/ottl/ottlfuncs/func_flatten_test.go index 2565c87e4c89..9e00068c2ccc 100644 --- a/pkg/ottl/ottlfuncs/func_flatten_test.go +++ b/pkg/ottl/ottlfuncs/func_flatten_test.go @@ -9,7 +9,6 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/pdata/pcommon" "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl" @@ -479,10 +478,8 @@ func Test_flatten_undeterministic(t *testing.T) { keys, val := extractKeysAndValues(m.AsRaw()) - require.True(t, compareSlices(keys, tt.expectedKeys)) - require.True(t, compareSlices(val, tt.expectedValues)) - - //assert.Equal(t, tt.expected, m.AsRaw()) + assert.True(t, compareSlices(keys, tt.expectedKeys)) + assert.True(t, compareSlices(val, tt.expectedValues)) }) } }