Skip to content

Commit 8197c75

Browse files
authored
remove md5
1 parent ae938b7 commit 8197c75

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1704,7 +1704,7 @@ test(
17041704
'package'
17051705
]);
17061706
const cachepath = getUserCachePath();
1707-
const cacheFolderHash = md5Path('.serverless/requirements.txt');
1707+
const cacheFolderHash = sha256Path('.serverless/requirements.txt');
17081708
t.true(
17091709
pathExistsSync(`${cachepath}${sep}downloadCacheslspyc${sep}http`),
17101710
'http exists in download-cache'
@@ -1724,7 +1724,7 @@ test('py3.6 uses static cache', t => {
17241724
npm(['i', path]);
17251725
sls(['--useStaticCache=true', 'package']);
17261726
const cachepath = getUserCachePath();
1727-
const cacheFolderHash = md5Path('.serverless/requirements.txt');
1727+
const cacheFolderHash = sha256Path('.serverless/requirements.txt');
17281728
t.true(
17291729
pathExistsSync(`${cachepath}${sep}${cacheFolderHash}_slspyc${sep}flask`),
17301730
'flask exists in static-cache'
@@ -1758,7 +1758,7 @@ test('py3.6 uses static cache with cacheLocation option', t => {
17581758
npm(['i', path]);
17591759
const cachepath = '.requirements-cache';
17601760
sls(['--useStaticCache=true', `--cacheLocation=${cachepath}`, 'package']);
1761-
const cacheFolderHash = md5Path('.serverless/requirements.txt');
1761+
const cacheFolderHash = sha256Path('.serverless/requirements.txt');
17621762
t.true(
17631763
pathExistsSync(`${cachepath}${sep}${cacheFolderHash}_slspyc${sep}flask`),
17641764
'flask exists in static-cache'
@@ -1785,7 +1785,7 @@ test(
17851785
'package'
17861786
]);
17871787
const cachepath = getUserCachePath();
1788-
const cacheFolderHash = md5Path('.serverless/requirements.txt');
1788+
const cacheFolderHash = sha256Path('.serverless/requirements.txt');
17891789
t.true(
17901790
pathExistsSync(`${cachepath}${sep}${cacheFolderHash}_slspyc${sep}flask`),
17911791
'flask exists in static-cache'

0 commit comments

Comments
 (0)