Skip to content

Commit e7343ce

Browse files
youtuxbubenkoff
authored andcommitted
Flush file before unlocking it (#25)
1 parent 8d4d902 commit e7343ce

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGES.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changelog
22
=========
33

4+
1.3.1
5+
-----
6+
7+
- Fix race condition causing when using port_getter/display_getter (youtux)
8+
9+
410
1.3.0
511
-----
612

pytest_services/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""pytest-services package."""
2-
__version__ = '1.3.0'
2+
__version__ = '1.3.1'

pytest_services/locks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ def locked_resources(name, lock_dir):
112112
fd.seek(0)
113113
fd.truncate()
114114
fd.write(json.dumps(bound_resources))
115+
fd.flush()
115116

116117

117118
def unlock_port(port, lock_dir, services_log):

0 commit comments

Comments
 (0)