Kaynağa Gözat

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

Kit Langton 5 ay önce
ebeveyn
işleme
8e353584c7
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  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"]
               }