Skip to content

Commit 1624c9a

Browse files
committed
fix: Reorder tests
1 parent 92496fe commit 1624c9a

2 files changed

Lines changed: 14 additions & 12 deletions

File tree

src/Fable.Build/Test/Standalone.fs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ let handleStandaloneFast () =
4141
workingDirectory = fableCompilerJsDir
4242
)
4343

44+
Command.Run("node", "--version", workingDirectory = standaloneBuildDest)
45+
4446
Command.Run("node", testArgs, workingDirectory = standaloneBuildDest)
4547

4648
let handle (args: string list) =

tests/Js/Main/DateTimeTests.fs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,18 +1127,6 @@ let tests =
11271127

11281128
t |> equal (TimeSpan(0, 13, 23, 30, 1))
11291129

1130-
testCaseAsync "Timer with AutoReset = true works" <| fun () ->
1131-
async {
1132-
let res = ref 0
1133-
let t = new Timers.Timer(50.)
1134-
t.Elapsed.Add(fun ev -> res := !res + 5)
1135-
t.Start()
1136-
do! Async.Sleep 125
1137-
t.Stop()
1138-
do! Async.Sleep 50
1139-
equal 10 !res
1140-
}
1141-
11421130
testCaseAsync "Timer with AutoReset = false works" <| fun () ->
11431131
async {
11441132
let res = ref 0
@@ -1151,6 +1139,18 @@ let tests =
11511139
equal 5 !res
11521140
}
11531141

1142+
testCaseAsync "Timer with AutoReset = true works" <| fun () ->
1143+
async {
1144+
let res = ref 0
1145+
let t = new Timers.Timer(50.)
1146+
t.Elapsed.Add(fun ev -> res := !res + 5)
1147+
t.Start()
1148+
do! Async.Sleep 125
1149+
t.Stop()
1150+
do! Async.Sleep 50
1151+
equal 10 !res
1152+
}
1153+
11541154
testCaseAsync "Timer.Elapsed.Subscribe works" <| fun () ->
11551155
async {
11561156
let res = ref 0

0 commit comments

Comments
 (0)