From f05719e3357960b1271cc3f3c821f49e260007a0 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 2 Oct 2017 13:12:58 -0700 Subject: [PATCH] test-api: Fix tests to work with subdomains. --- tools/test-api | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/test-api b/tools/test-api index 251429afcc..f6e8876e47 100755 --- a/tools/test-api +++ b/tools/test-api @@ -21,11 +21,11 @@ django.setup() from zerver.models import get_user, get_realm -with test_server_running(): +with test_server_running(external_host='zulipdev.com:9981'): email = 'iago@zulip.com' # Iago is an admin realm = get_realm("zulip") api_key = get_user(email, realm).api_key - site = 'http://127.0.0.1:9981' + site = 'http://zulip.zulipdev.com:9981' client = Client( email=email,