Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
maybe plz
  • Loading branch information
TheAngryByrd committed Mar 30, 2023
1 parent 7e6f106 commit cd7c7ee
Show file tree
Hide file tree
Showing 3 changed files with 243 additions and 211 deletions.
2 changes: 1 addition & 1 deletion build/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ let init args =
Target.create "Build" (fun _ -> DotNet.build id "")

let testTFM tfm =
exec "dotnet" $"test --blame --blame-hang-timeout 60s --no-build --framework {tfm} --logger trx --logger GitHubActions -c Release .\\test\\Ionide.ProjInfo.Tests\\Ionide.ProjInfo.Tests.fsproj" "."
exec "dotnet" $"test --blame --blame-hang-timeout 2m --no-build --framework {tfm} --logger trx --logger GitHubActions -c Release .\\test\\Ionide.ProjInfo.Tests\\Ionide.ProjInfo.Tests.fsproj" "."
|> ignore

Target.create "Test" DoNothing
Expand Down
3 changes: 2 additions & 1 deletion src/Ionide.ProjInfo/Library.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,8 @@ type WorkspaceLoader private (toolsPath: ToolsPath, ?globalProperties: (string *
| Error msg when msg.Contains "The operation cannot be completed because a build is already in progress." ->
//Try to load project again
Threading.Thread.Sleep(50)
loadProject p
// loadProject p
[], None
| Error msg ->
loadingNotification.Trigger(WorkspaceProjectState.Failed(p, GenericError(p, msg)))
[], None
Expand Down
Loading

0 comments on commit cd7c7ee

Please sign in to comment.