mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-09-03 10:09:19 +00:00
Improve unit-tests (#1479)
* tests were failing on windows and macos * improve coverage
This commit is contained in:
@@ -110,8 +110,8 @@ def validate_data_dir(data_dir):
|
||||
bin_dir = schema.data.get("postgresql", {}).get("bin_dir", None)
|
||||
major_version = get_major_version(bin_dir)
|
||||
if pgversion != major_version:
|
||||
raise ConfigParseError("data_dir directory postgresql version ({}) doesn't match"
|
||||
"with 'postgres --version' output ({})".format(pgversion, major_version))
|
||||
raise ConfigParseError("data_dir directory postgresql version ({}) doesn't match with "
|
||||
"'postgres --version' output ({})".format(pgversion, major_version))
|
||||
return True
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user