Skip to content

Commit

Permalink
Merge pull request #28 from bobuhiro11/retry
Browse files Browse the repository at this point in the history
Add 'retry' decorator.
  • Loading branch information
bobuhiro11 authored Aug 13, 2024
2 parents a937e5d + 60e2ef1 commit 44141f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mininetlab/test_ovs_srv6.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import unittest
from mininetlab.ovs_srv6 import run
from retry import retry


class TestRun(unittest.TestCase):
@retry(tries=5, delay=1)
def test_run(self):
loss_rate = run()
self.assertEqual(0.0, loss_rate)
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ mock
future
git+https://github.com/mininet/[email protected]#egg=mininet
scapy
retry

0 comments on commit 44141f6

Please sign in to comment.