Test whether the contentHash was saved correctly

This patch re-enables a test that checks whether the contentHash was saved in the http_responses table.
This commit is contained in:
Erik Tews 2019-05-22 11:43:51 +02:00
Родитель c4083083fa
Коммит 29b127c97e
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -611,8 +611,7 @@ class TestHTTPInstrument(OpenWPMTest):
with open(os.path.join(BASE_PATH, path[1:]), 'rb') as f: with open(os.path.join(BASE_PATH, path[1:]), 'rb') as f:
content = f.read() content = f.read()
chash = sha256(content).hexdigest() chash = sha256(content).hexdigest()
# TODO: webext instrumentation doesn't save the content_hash yet. assert chash == row['content_hash']
# assert chash == row['content_hash']
disk_content[chash] = content disk_content[chash] = content
ldb_content = dict() ldb_content = dict()