Skip to content

Commit

Permalink
Merge pull request #1485 from ankush/localhost
Browse files Browse the repository at this point in the history
refactor: use 127.0.0.1 instead of localhost
  • Loading branch information
ankush committed Sep 13, 2023
2 parents c2af169 + 672eca1 commit dcae3e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bench/config/common_site_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def update_config_for_frappe(config, bench_path):

for key in ("redis_cache", "redis_queue", "redis_socketio"):
if key not in config:
config[key] = f"redis://localhost:{ports[key]}"
config[key] = f"redis://127.0.0.1:{ports[key]}"

for key in ("webserver_port", "socketio_port", "file_watcher_port"):
if key not in config:
Expand Down
12 changes: 6 additions & 6 deletions bench/tests/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ def test_multiple_benches(self):
"webserver_port": 8000,
"socketio_port": 9000,
"file_watcher_port": 6787,
"redis_queue": "redis://localhost:11000",
"redis_socketio": "redis://localhost:13000",
"redis_cache": "redis://localhost:13000",
"redis_queue": "redis://127.0.0.1:11000",
"redis_socketio": "redis://127.0.0.1:13000",
"redis_cache": "redis://127.0.0.1:13000",
},
)

Expand All @@ -66,9 +66,9 @@ def test_multiple_benches(self):
"webserver_port": 8001,
"socketio_port": 9001,
"file_watcher_port": 6788,
"redis_queue": "redis://localhost:11001",
"redis_socketio": "redis://localhost:13001",
"redis_cache": "redis://localhost:13001",
"redis_queue": "redis://127.0.0.1:11001",
"redis_socketio": "redis://127.0.0.1:13001",
"redis_cache": "redis://127.0.0.1:13001",
},
)

Expand Down

0 comments on commit dcae3e3

Please sign in to comment.