You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the tests, you can get a failure due to the tests checking for keys in an empty dictionary. Below, is an example of the error message. Because no tracestate was passed along by the server, the tracestate map is empty and causes this error. I think it's kind of confusing to have both Failure and Errors states that indicate a failure. I think we should just check if the keys exist prior to accessing them.
ERROR: test_tracestate_included_traceparent_included (__main__.TraceContextTest)
harness sends a request with both tracestate and traceparent
----------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 785, in test_tracestate_included_traceparent_included
self.assertEqual(tracestate['foo'], '1')
File "/Users/stevenrivera-james/workspace/test_pr/lstracer-integration-tests/propagation-tests/propagation-server/tracecontext/tracestate.py", line 35, in __getitem__
return self._traits[key]
KeyError: 'foo'
The text was updated successfully, but these errors were encountered:
When running the tests, you can get a failure due to the tests checking for keys in an empty dictionary. Below, is an example of the error message. Because no tracestate was passed along by the server, the tracestate map is empty and causes this error. I think it's kind of confusing to have both Failure and Errors states that indicate a failure. I think we should just check if the keys exist prior to accessing them.
The text was updated successfully, but these errors were encountered: