summaryrefslogtreecommitdiffstats
path: root/tests/inspector
diff options
context:
space:
mode:
authorCarlos Goncalves <mail@cgoncalves.pt>2017-08-17 09:23:08 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-17 09:23:08 +0000
commit5b1401a9194daae197a8f5ae534b9a37dd483eac (patch)
treeb0af867f58dc0c50686cc1f68e29f1c077896dac /tests/inspector
parentd2b6574994e065de13c2d31f9a6d7f27142c0a41 (diff)
parent580f7ee5064ab2fe6244fa07d7ef3b785de5d926 (diff)
Merge "Decode received data in byte type to str type"
Diffstat (limited to 'tests/inspector')
-rw-r--r--tests/inspector/sample.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/inspector/sample.py b/tests/inspector/sample.py
index db477de9..dda053ab 100644
--- a/tests/inspector/sample.py
+++ b/tests/inspector/sample.py
@@ -135,7 +135,7 @@ class InspectorApp(Thread):
self.log.info('event posted in sample inspector at %s' % time.time())
self.log.info('sample inspector = %s' % self.inspector)
self.log.info('sample inspector received data = %s' % request.data)
- events = json.loads(request.data)
+ events = json.loads(request.data.decode('utf8'))
self.inspector.handle_events(events)
return "OK"