Skip to content

Commit

Permalink
CI: Another attempt to mitigate "Unrecognized Windows Sockets error: …
Browse files Browse the repository at this point in the history
…10106: socket"
  • Loading branch information
amotl committed Nov 3, 2020
1 parent afcf543 commit 407925e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crate/testing/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def __init__(self,
self.env = env or {}
self.env.setdefault('CRATE_USE_IPV4', 'true')
if sys.platform == 'win32':
self.env.setdefault('_JAVA_OPTIONS', '-Djava.net.preferIPv4Stack=true')
self.env.setdefault('_JAVA_OPTIONS', '-Djava.awt.headless=true -Djava.net.preferIPv4Stack=true')
self.env.setdefault('JAVA_HOME', os.environ.get('JAVA_HOME', ''))
self._stdout_consumers = []
self.conn_pool = urllib3.PoolManager(num_pools=1)
Expand Down

0 comments on commit 407925e

Please sign in to comment.