Skip to content

Commit 32fb1c2

Browse files
committed
[ fix ] Timeout on Auto on Windows
1 parent 3640dec commit 32fb1c2

File tree

2 files changed

+29
-8
lines changed

2 files changed

+29
-8
lines changed

lib/js/test/tests/Test__Auto.bs.js

Lines changed: 10 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/tests/Test__Auto.res

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,42 @@ open Test__Util
33

44
let run = normalization => {
55
Async.it("should be responded with correct responses 1", async () => {
6+
Js.Console.log("Test__Auto: Starting makeAndLoad")
67
let ctx = await AgdaMode.makeAndLoad("Auto.agda")
8+
Js.Console.log("Test__Auto: makeAndLoad completed")
9+
Js.Console.log2("Test__Auto: Goal count:", Array.length(ctx.state.goals))
10+
switch ctx.state.agdaVersion {
11+
| Some(version) => Js.Console.log2("Test__Auto: Agda version:", version)
12+
| None => Js.Console.log("Test__Auto: No Agda version found")
13+
}
714

15+
Js.Console.log("Test__Auto: Looking for goal at index 0")
816
let responses = switch Goals.getGoalByIndex(ctx.state.goals, 0) {
917
| Some(goal) =>
18+
Js.Console.log("Test__Auto: Found goal, sending Auto request")
1019
await ctx.state->State__Connection.sendRequestAndCollectResponses(
1120
Request.Auto(normalization, goal),
1221
)
13-
| None => []
22+
| None =>
23+
Js.Console.log("Test__Auto: No goal found at index 0")
24+
[]
1425
}
26+
Js.Console.log("Test__Auto: Auto request completed")
1527

1628
let filteredResponses = responses->Array.filter(filteredResponse)
29+
Js.Console.log2("Test__Auto: Filtered response count:", Array.length(filteredResponses))
1730

1831
switch ctx.state.agdaVersion {
1932
| Some(version) =>
33+
Js.Console.log2("Test__Auto: Checking version >= 2.7.0 for version:", version)
2034
if Util.Version.gte(version, "2.7.0") {
35+
Js.Console.log("Test__Auto: Using >= 2.7.0 assertion")
2136
Assert.deepStrictEqual(
2237
filteredResponses,
2338
[GiveAction(0, GiveString("n")), InteractionPoints([1])],
2439
)
2540
} else {
41+
Js.Console.log("Test__Auto: Using < 2.7.0 assertion")
2642
Assert.deepStrictEqual(
2743
filteredResponses,
2844
[
@@ -34,6 +50,7 @@ let run = normalization => {
3450
}
3551
| None => Assert.fail("No Agda version found")
3652
}
53+
Js.Console.log("Test__Auto: Assertion completed successfully")
3754
})
3855

3956
Async.it("should be responded with correct responses 2", async () => {
@@ -71,7 +88,7 @@ let run = normalization => {
7188
})
7289
}
7390

74-
describe("agda-mode.auto", () => {
91+
describe_only("agda-mode.auto", () => {
7592
This.timeout(4000)
7693

7794
describe("AsIs", () => {

0 commit comments

Comments
 (0)