1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-26 00:38:10 +00:00

Fix rare crash in tests for travis and fix coverage

This commit is contained in:
Julien Duponchelle 2015-03-30 17:03:49 +02:00
parent da00aa030a
commit 420a1c2da2
2 changed files with 3 additions and 2 deletions

View File

@ -29,4 +29,4 @@ notifications:
# on_failure: always
after_success:
- coveralls
- coveralls --base_dir gns3server

View File

@ -52,6 +52,7 @@ class VPCS(BaseManager):
vm = self.get_vm(vm_id)
i = self._used_mac_ids[vm_id]
self._free_mac_ids[vm.project.id].insert(0, i)
if vm_id in self._used_mac_ids:
del self._used_mac_ids[vm_id]
yield from super().close_vm(vm_id, *args, **kwargs)
return vm