Skip to content

Commit 50b3170

Browse files
authored
fix(tests): use encoder decode in tests (#1221)
1 parent 47d96b2 commit 50b3170

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_encoders.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import json
2-
import msgpack
32

43
from unittest import TestCase
54

@@ -88,7 +87,7 @@ def test_encode_traces_msgpack(self):
8887

8988
encoder = MsgpackEncoder()
9089
spans = encoder.encode_traces(traces)
91-
items = msgpack.unpackb(spans)
90+
items = encoder.decode(spans)
9291

9392
# test the encoded output that should be a string
9493
# and the output must be flatten
@@ -123,7 +122,7 @@ def test_join_encoded_msgpack(self):
123122
data = encoder.join_encoded(encoded_traces)
124123

125124
# Parse the encoded data
126-
items = msgpack.unpackb(data)
125+
items = encoder.decode(data)
127126

128127
# test the encoded output that should be a string
129128
# and the output must be flatten

0 commit comments

Comments
 (0)