Skip to content

Commit

Permalink
[vstest]: change time.clock() to time.time()
Browse files Browse the repository at this point in the history
time.clock() is removed from python 3.3

Signed-off-by: Guohan Lu <lguohan@gmail.com>
  • Loading branch information
lguohan committed Jul 7, 2020
1 parent 9c71203 commit 6adaf2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_vrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def test_VRFMgr_Comprehensive(self, dvs, testlog):
('l3_mc_action', 'SAI_VIRTUAL_ROUTER_ATTR_UNKNOWN_L3_MULTICAST_PACKET_ACTION', self.packet_action_gen),
]

random.seed(int(time.clock()))
random.seed(int(time.time()))

for n in range(2**len(attributes)):
# generate testcases for all combinations of attributes
Expand Down Expand Up @@ -228,7 +228,7 @@ def test_VRFMgr_Update(self, dvs, testlog):
('l3_mc_action', 'SAI_VIRTUAL_ROUTER_ATTR_UNKNOWN_L3_MULTICAST_PACKET_ACTION', self.packet_action_gen),
]

random.seed(int(time.clock()))
random.seed(int(time.time()))

state = self.vrf_create(dvs, "Vrf_a",
[
Expand Down

0 comments on commit 6adaf2e

Please sign in to comment.