mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-26 16:58:28 +00:00
Fix rare crash in tests for travis and fix coverage
This commit is contained in:
parent
da00aa030a
commit
420a1c2da2
@ -29,4 +29,4 @@ notifications:
|
|||||||
# on_failure: always
|
# on_failure: always
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- coveralls
|
- coveralls --base_dir gns3server
|
||||||
|
@ -52,6 +52,7 @@ class VPCS(BaseManager):
|
|||||||
vm = self.get_vm(vm_id)
|
vm = self.get_vm(vm_id)
|
||||||
i = self._used_mac_ids[vm_id]
|
i = self._used_mac_ids[vm_id]
|
||||||
self._free_mac_ids[vm.project.id].insert(0, i)
|
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]
|
del self._used_mac_ids[vm_id]
|
||||||
yield from super().close_vm(vm_id, *args, **kwargs)
|
yield from super().close_vm(vm_id, *args, **kwargs)
|
||||||
return vm
|
return vm
|
||||||
|
Loading…
Reference in New Issue
Block a user