소스 검색

[beeswax] Set localhost for default expected value (#1181)

Co-authored-by: Romain Rigaux <romain.rigaux@gmail.com>
Sungpeo Kook 5 년 전
부모
커밋
becfdbf7c1
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      apps/beeswax/src/beeswax/tests.py

+ 2 - 1
apps/beeswax/src/beeswax/tests.py

@@ -1763,7 +1763,8 @@ for x in sys.stdin:
 
 
     history = beeswax.models.QueryHistory.objects.latest('id')
     history = beeswax.models.QueryHistory.objects.latest('id')
     assert_equal('beeswax', history.server_name)
     assert_equal('beeswax', history.server_name)
-    assert_equal(HIVE_SERVER_HOST.get(), history.server_host)
+    assert_true(history.server_host in [HIVE_SERVER_HOST.get(), 'localhost'])
+
 
 
     query_server = history.get_query_server_config()
     query_server = history.get_query_server_config()
     assert_equal('beeswax', query_server['server_name'])
     assert_equal('beeswax', query_server['server_name'])