Sfoglia il codice sorgente

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

Kit Langton 3 mesi fa
parent
commit
8e353584c7
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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 () => {
               Formatter.gofmt.enabled = async () => {
                 active++
                 active++
                 max = Math.max(max, active)
                 max = Math.max(max, active)
-                await Bun.sleep(20)
+                await Promise.resolve()
                 active--
                 active--
                 return ["sh", "-c", "true"]
                 return ["sh", "-c", "true"]
               }
               }
               Formatter.mix.enabled = async () => {
               Formatter.mix.enabled = async () => {
                 active++
                 active++
                 max = Math.max(max, active)
                 max = Math.max(max, active)
-                await Bun.sleep(20)
+                await Promise.resolve()
                 active--
                 active--
                 return ["sh", "-c", "true"]
                 return ["sh", "-c", "true"]
               }
               }