Skip to content

Commit

Permalink
Add 'retry' decorator.
Browse files Browse the repository at this point in the history
Signed-off-by: Nobuhiro MIKI <nob@bobuhiro11.net>
  • Loading branch information
bobuhiro11 committed Aug 13, 2024
1 parent a937e5d commit 60e2ef1
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/mininet@2.3.0#egg=mininet
scapy
retry

0 comments on commit 60e2ef1

Please sign in to comment.