Skip to content

Commit c688036

Browse files
committed
All lower bound test for server utilisation bug too
1 parent 0e7ca2b commit c688036

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ciw/tests/test_node.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import unittest
22
import ciw
33
from hypothesis import given
4-
from hypothesis.strategies import (floats, integers, random_module)
4+
from hypothesis.strategies import floats, integers, random_module
55

66
class TestNode(unittest.TestCase):
77

@@ -667,6 +667,7 @@ def test_utilisation_always_1_or_less(self, lmbda, mu, c, rm):
667667
for srvr in Q.transitive_nodes[0].servers:
668668
self.assertGreaterEqual(srvr.total_time, srvr.busy_time)
669669
self.assertLessEqual(Q.transitive_nodes[0].server_utilisation, 1.0)
670+
self.assertGreaterEqual(Q.transitive_nodes[0].server_utilisation, 0.0)
670671

671672
def test_num_inds_equal_len_all_inds(self):
672673
# Create a Simulatin class that inherits form ciw.Simulation so that

0 commit comments

Comments
 (0)