Kris Borowinski

Results 45 comments of Kris Borowinski

It does work without `StreamingHost` 👀: ![image](https://github.com/pester/Pester/assets/16168755/f1136890-ce46-4ab4-9463-a359a035e9ad) `$Host.UI` is not null but `$Host.UI.psobject.Properties` are: ![image](https://github.com/pester/Pester/assets/16168755/5dc8aa2e-7493-4cb7-a751-ecdc4333daae) ![image](https://github.com/pester/Pester/assets/16168755/ac1b9a86-d33d-4df0-a69a-2c54da4bc542) This has to be *ThreadJob* bug or limitation that I didn't know about 🤔

This is very strange: 1. I've changed the *Pester.psm1* module to wait for debugger when `$Host.UI.posobject.Properties` are `$null` (and store the value in the `$p` variable): ![pester](https://github.com/pester/Pester/assets/16168755/fd323f75-a213-4fda-b067-475599eb5ecf) 2. Then I've...

~~OK, got it! Finally! The `$Host.UI` is kind of **lazy loaded**!~~ *(possible race condition)* I have modified the *Pester.psm1* once more with simple loop that waits until the `$Host.UI.psobject.Properties` are...

@fflaten I was able to chat with @SeeminglyScience yesterday on Discord, and for him it looks like race condition bug *(I hope he doesn't mind me posting the conversation screenshot...

This is yet simplest repro case *(the number of jobs has to be quite high though to get the repro)*: ```powershell 1..500 | % {Start-ThreadJob {1 | Should -BeExactly 1;...

I was able to reproduce the issue without `InitializationScript` but I still needed to call `Should`. I was unable to reproduce the issue otherwise. I also think that since this...

@kilasuit [Unfortunately the same issue occurs](https://github.com/PowerShell/ThreadJob/issues/31#issuecomment-1653514960) in `Microsoft.PowerShell.ThreadJob` *v2.1.0*

@nohwnd @fflaten Regarding running Pester tests in parallel, I have custom in-house module that I use for infrastructure testing. Some tests take long time to execute so I run the...

@fflaten Will move it to bug reports, and I guess that `$host.UI` is not `null` since my fix would throw an error too.