Skip to content

Commit

Permalink
tests: Don't use count() for XID generation
Browse files Browse the repository at this point in the history
  • Loading branch information
MurphyMc committed Feb 23, 2013
1 parent 01b33e3 commit 772cd32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/openflow/libopenflow_01_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def __len__ (self):
self._test_pack_unpack(o, kw["xid"], kw["header_type"])

def test_pack_all_comands_simple(self):
xid_gen = itertools.count()
xid_gen = xid_generator()
for cls in ( ofp_features_reply,
ofp_set_config,
ofp_get_config_reply,
Expand All @@ -216,7 +216,7 @@ def test_pack_all_comands_simple(self):
ofp_get_config_request,
ofp_get_config_reply,
ofp_set_config ):
xid = xid_gen.next()
xid = xid_gen()
args = {}

# Customize initializer
Expand Down

0 comments on commit 772cd32

Please sign in to comment.