Skip to content

Commit

Permalink
test: change error code assert (#4907)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Mar 16, 2022
1 parent caacd09 commit f97fe4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/app/middleware/site_file.test.js
Expand Up @@ -95,7 +95,7 @@ describe('test/app/middleware/site_file.test.js', () => {
describe('siteFile.cacheControl = no-store', () => {
let app;
before(() => {
app = utils.app('apps/sitefile-custom-cachecontrol');
app = utils.app('apps/siteFile-custom-cacheControl');
return app.ready();
});
after(() => app.close());
Expand Down
2 changes: 1 addition & 1 deletion test/lib/core/httpclient.test.js
Expand Up @@ -99,7 +99,7 @@ describe('test/lib/core/httpclient.test.js', () => {
}, err => {
assert(err.name === 'HttpClientError');
assert(err.code === 'httpclient_ENETUNREACH');
assert(err.message === 'connect ENETUNREACH 1.1.1.1:80 - Local (127.0.0.1) [https://eggjs.org/zh-cn/faq/httpclient_ENETUNREACH]');
assert(err.message === 'connect ENETUNREACH 1.1.1.1:80 - Local (127.0.0.1) [ https://eggjs.org/zh-cn/faq/httpclient_ENETUNREACH ]');
return true;
});
});
Expand Down

1 comment on commit f97fe4a

@vercel
Copy link

@vercel vercel bot commented on f97fe4a Mar 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.