await exit code in publication test (#4289)

diff --git a/test/workspace_test.dart b/test/workspace_test.dart
index 5cc9753..63cd9cd 100644
--- a/test/workspace_test.dart
+++ b/test/workspace_test.dart
@@ -1351,6 +1351,7 @@
     await confirmPublish(pub);
     handleUploadForm(server);
     handleUpload(server);
+    await pub.shouldExit(SUCCESS);
   });
 
   test(