Fixed feature test issues

This commit is contained in:
Usman Muzaffar
2019-04-05 12:25:03 +05:30
committed by Akshay Joshi
parent f706f7ed0c
commit 5c4c09f237
5 changed files with 32 additions and 10 deletions

View File

@@ -8,6 +8,8 @@
##########################################################################
import sys
import random
from pgadmin.utils.route import BaseTestGenerator
from regression.python_test_utils import test_utils
from pgadmin.utils import server_utils
@@ -56,7 +58,8 @@ class TestSQLASCIIEncoding(BaseTestGenerator):
]
def setUp(self):
self.encode_db_name = 'test_encoding_' + self.db_encoding
self.encode_db_name = 'test_encoding_' + self.db_encoding + \
str(random.randint(1000, 65535))
self.encode_sid = self.server_information['server_id']
server_con = server_utils.connect_server(self, self.encode_sid)