Skip to content

Commit 5d358d1

Browse files
committed
fix(tests): update test files for consistency and minor adjustments
1 parent aedfc20 commit 5d358d1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Tests.fsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ let asyncSuite = describe "Async Tests" {
6868
beforeEach {
6969
let! x = async {
7070
debug "Before each async test"
71-
return 42
71+
return 100
7272
}
73-
do! Async.Sleep 100
73+
do! Async.Sleep x
7474
}
7575

7676
it "should run an async test" {

test.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
@test "Tests.fsx" {
44
dotnet fsi Tests.fsx > current.log
5-
run diff <(cat expected.log | grep -v "Total time") <(cat current.log | grep -v "Total time")
5+
run diff <(grep -v "Total time" < expected.log) <(grep -v "Total time" < current.log)
66
[ "$status" -eq 0 ]
77
printf 'Lines:\n'
88
printf 'lines %s\n' "${lines[@]}" >&2

0 commit comments

Comments
 (0)