Skip to content

Commit

Permalink
Merge branch 'main' into docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Helveg committed Mar 16, 2021
2 parents 14937d6 + de34a57 commit 14fa504
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_readwrite.py
Expand Up @@ -61,6 +61,13 @@ def test_collective_fence(self):
else:
self.assertEqual(False, spy, "Non-master entered collective write.")

def test_fence_collecting(self):
with self.controller.single_write() as fence:
fence.guard()
fence.share(5)
r = fence.collect()
self.assertEqual(5, r, "Fenced resource was not correctly collected.")

def test_collective_handle(self):
essential = 5
spy = False
Expand Down

0 comments on commit 14fa504

Please sign in to comment.