diff --git a/src/bosh_aws_cpi/spec/integration/lifecycle_spec.rb b/src/bosh_aws_cpi/spec/integration/lifecycle_spec.rb index f78e4cb6..f43d734c 100644 --- a/src/bosh_aws_cpi/spec/integration/lifecycle_spec.rb +++ b/src/bosh_aws_cpi/spec/integration/lifecycle_spec.rb @@ -114,6 +114,9 @@ instance_id, _ = cpi_v2.create_vm(nil, @stemcell_id, vm_type, network_spec, disks, environment) instance = cpi_v2.ec2_resource.instance(instance_id) expect(instance.tags).to_not be_nil + + # cleanup + cpi_v2.delete_vm(instance_id) end end