Просмотр исходного кода

test(format): remove formatter check sleeps (#27407)

Kit Langton 3 месяцев назад
Родитель
Сommit
8e353584c7
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/opencode/test/format/format.test.ts

+ 2 - 2
packages/opencode/test/format/format.test.ts

@@ -186,14 +186,14 @@ describe("Format", () => {
               Formatter.gofmt.enabled = async () => {
                 active++
                 max = Math.max(max, active)
-                await Bun.sleep(20)
+                await Promise.resolve()
                 active--
                 return ["sh", "-c", "true"]
               }
               Formatter.mix.enabled = async () => {
                 active++
                 max = Math.max(max, active)
-                await Bun.sleep(20)
+                await Promise.resolve()
                 active--
                 return ["sh", "-c", "true"]
               }