From 1fcb5c9689e385fded07f437fff1fcc55b7e62a1 Mon Sep 17 00:00:00 2001 From: "dongwan.kang" Date: Mon, 11 Nov 2024 16:40:21 +0900 Subject: [PATCH] [#noissue] fix test fail --- span_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/span_test.go b/span_test.go index 6674248..134a812 100644 --- a/span_test.go +++ b/span_test.go @@ -110,7 +110,8 @@ func Test_span_NewSpanEvent(t *testing.T) { assert.Equal(t, span.eventDepth, int32(2), "eventDepth") assert.Equal(t, span.eventStack.len(), int(1), "stack.len") - se := span.spanEvents[0] + se, exist := span.eventStack.peek() + assert.Equal(t, exist, true, "eventStack.peek") assert.Equal(t, se.operationName, tt.args.operationName, "operationName") }) }