зеркало из https://github.com/openwpm/OpenWPM.git
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:
Родитель
c4083083fa
Коммит
29b127c97e
|
@ -611,8 +611,7 @@ class TestHTTPInstrument(OpenWPMTest):
|
|||
with open(os.path.join(BASE_PATH, path[1:]), 'rb') as f:
|
||||
content = f.read()
|
||||
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
|
||||
|
||||
ldb_content = dict()
|
||||
|
|
Загрузка…
Ссылка в новой задаче