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 d003d2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/crate/testing/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +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.awt.headless=true')
self.env.setdefault('_JAVA_OPTIONS', '-Djava.net.preferIPv4Stack=true')
self.env.setdefault('JAVA_HOME', os.environ.get('JAVA_HOME', ''))
self._stdout_consumers = []
Expand Down

0 comments on commit d003d2e

Please sign in to comment.