Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fc1943s committed Apr 23, 2024
1 parent 314f7bc commit 0058a62
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.12'
cache: 'pip'

- uses: actions/cache@v3
Expand Down
10 changes: 5 additions & 5 deletions apps/dir-tree-html/DirTreeHtml.dib
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@

#!fsharp

#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib

#!fsharp

#r @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstandard2.1/FSharp.Control.AsyncSeq.dll"
#r @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.0/System.Reactive.dll"
#r @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/netstandard2.0/System.Reactive.Linq.dll"
Expand All @@ -22,6 +17,11 @@

#!fsharp

#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib

#!fsharp

#!import ../../lib/fsharp/Common.fs
#!import ../../lib/fsharp/CommonFSharp.fs
#!import ../../lib/fsharp/Async.fs
Expand Down
10 changes: 3 additions & 7 deletions lib/spiral/runtime.dib
Original file line number Diff line number Diff line change
Expand Up @@ -366,21 +366,17 @@ fun () =>
// // test
// // print_code=true

inl temp_folder, disposable = file_system.create_temp_directory ()
inl temp_dir, disposable = file_system.create_temp_directory ()
disposable |> use |> ignore
inl file_name = "test.txt"
inl path = temp_folder </> file_name

inl command = $'\@$"pwsh -c ""Get-Content {!path}"""'

fun () =>
inl path = temp_dir </> "test.txt"
"0" |> file_system.write_all_text_async path |> async.do

inl cts = threading.new_cancellation_token_source ()
trace Debug (fun () => "1") _locals
inl result =
execution_options fun x => { x with
command
$'\@$"pwsh -c ""Get-Content {!path}"""'
cancellation_token = cts |> threading.cancellation_source_token |> Some |> optionm'.box
}
|> execute_with_options_async
Expand Down

0 comments on commit 0058a62

Please sign in to comment.