Skip to content

Commit 48a6be7

Browse files
committed
docs(compute-samples): included machine deletion in cleanup
1 parent 670bd28 commit 48a6be7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compute/cloud-client/src/test/java/compute/InstanceTemplatesIT.java

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ public static void setup() throws IOException, ExecutionException, InterruptedEx
7979
public static void cleanup() throws IOException, ExecutionException, InterruptedException {
8080
ByteArrayOutputStream stdOut = new ByteArrayOutputStream();
8181
System.setOut(new PrintStream(stdOut));
82+
DeleteInstance.deleteInstance(PROJECT_ID, ZONE, MACHINE_NAME);
83+
assertThat(stdOut.toString()).contains("Operation Status for instance " + MACHINE_NAME);
8284
DeleteInstanceTemplate.deleteInstanceTemplate(PROJECT_ID, TEMPLATE_NAME);
8385
DeleteInstanceTemplate.deleteInstanceTemplate(PROJECT_ID, TEMPLATE_NAME_FROM_INSTANCE);
8486
DeleteInstanceTemplate.deleteInstanceTemplate(PROJECT_ID, TEMPLATE_NAME_WITH_SUBNET);

0 commit comments

Comments
 (0)