Эх сурвалжийг харах

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

Co-authored-by: Romain Rigaux <romain.rigaux@gmail.com>
Sungpeo Kook 5 жил өмнө
parent
commit
becfdbf7c1

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

@@ -1763,7 +1763,8 @@ for x in sys.stdin:
 
     history = beeswax.models.QueryHistory.objects.latest('id')
     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()
     assert_equal('beeswax', query_server['server_name'])