Skip to content

Commit

Permalink
Update mock server and drop /etc/hosts requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny-signal committed Feb 28, 2022
1 parent dbed3cb commit 524f0cf
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ jobs:
- name: Bundle
run: yarn build:webpack

- name: Setup hosts
run: sudo echo "127.0.0.1 mock.signal.org" | sudo tee -a /etc/hosts

- name: Run startup benchmarks
run: |
set -o pipefail
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,6 @@ jobs:
- name: Bundle
run: yarn build:webpack

- name: Setup hosts
run: sudo echo "127.0.0.1 mock.signal.org" | sudo tee -a /etc/hosts

- name: Run storage service tests
run: |
set -o pipefail
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
"@babel/preset-typescript": "7.16.0",
"@chanzuckerberg/axe-storybook-testing": "3.0.2",
"@electron/fuses": "1.5.0",
"@signalapp/mock-server": "1.1.1",
"@signalapp/mock-server": "1.1.2",
"@storybook/addon-actions": "5.1.11",
"@storybook/addon-knobs": "5.1.11",
"@storybook/addons": "5.1.11",
Expand Down
2 changes: 1 addition & 1 deletion ts/test-mock/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export class Bootstrap {
//

private async generateConfig(port: number): Promise<string> {
const url = `https://mock.signal.org:${port}`;
const url = `https://127.0.0.1:${port}`;
return JSON.stringify({
...(await loadCertificates()),

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1349,10 +1349,10 @@
"@react-spring/shared" "~9.4.0"
"@react-spring/types" "~9.4.0"

"@signalapp/mock-server@1.1.1":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@signalapp/mock-server/-/mock-server-1.1.1.tgz#b290feeb107a3d644851708ff31bb4cd9733aa87"
integrity sha512-bk+fMFwRtwE4zbhryIhqPoumXX1L91kJQbHjfl2i4If47LDM9ik44vVGblIqO7l8Wf1nKDD/tTemZU5w69f5qA==
"@signalapp/mock-server@1.1.2":
version "1.1.2"
resolved "https://registry.yarnpkg.com/@signalapp/mock-server/-/mock-server-1.1.2.tgz#008c46cd6f29cb5b91a3414c9c74bc770021b853"
integrity sha512-rkxPzbbiD6HMeeb6fe7li5H7jwzJuWQPuA7tP74KYoRLf0LeFlbRdHSrqZ4GxpA63Zu0vzC3h2bC8E2F1JM4Eg==
dependencies:
"@signalapp/signal-client" "0.12.1"
debug "^4.3.2"
Expand Down

0 comments on commit 524f0cf

Please sign in to comment.