test: increase sleep time to wait for dlv cleanup
Updates golang/vscode-go#1993
Change-Id: I7d65209d957c4382361e834f060c9bc177adfa16
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/377414
Trust: Suzy Mueller <suzmue@golang.org>
Run-TryBot: Suzy Mueller <suzmue@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
diff --git a/test/integration/goDebug.test.ts b/test/integration/goDebug.test.ts
index 1a42c3c..4e0d0a1 100644
--- a/test/integration/goDebug.test.ts
+++ b/test/integration/goDebug.test.ts
@@ -1760,9 +1760,9 @@
let stat: fs.Stats = null;
try {
const fsstat = util.promisify(fs.stat);
- const maxAttempts = 5;
+ const maxAttempts = 2;
for (let i = 0; i < maxAttempts; i++) {
- await sleep(100); // allow dlv to respond and finish cleanup.
+ await sleep(1000); // allow dlv to respond and finish cleanup.
stat = await fsstat(OUTPUT);
// Don't need to try again if stat result is null.
if (stat === null) {