From 8dd85efe731b500fc06c93c1f97bc3bfeb7174c9 Mon Sep 17 00:00:00 2001 From: mdaneri Date: Wed, 26 Jun 2024 14:59:03 -0700 Subject: [PATCH] fix logging test --- tests/unit/Logging.Tests.ps1 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/unit/Logging.Tests.ps1 b/tests/unit/Logging.Tests.ps1 index df2a8b7ab..407e784fd 100644 --- a/tests/unit/Logging.Tests.ps1 +++ b/tests/unit/Logging.Tests.ps1 @@ -29,8 +29,9 @@ Describe 'Get-PodeLogger' { Describe 'Write-PodeLog' { BeforeEach { - $PodeContext = @{ LogsToProcess = New-Object System.Collections.ArrayList - Server = @{ + $PodeContext = @{ + LogsToProcess = [System.Collections.Concurrent.ConcurrentQueue[hashtable]]::new() + Server = @{ Logging = @{ Types = @{ test = @{ @@ -61,8 +62,9 @@ Describe 'Write-PodeLog' { Describe 'Write-PodeErrorLog' { BeforeEach { - $PodeContext = @{ LogsToProcess = New-Object System.Collections.ArrayList - Server = @{ + $PodeContext = @{ + LogsToProcess = [System.Collections.Concurrent.ConcurrentQueue[hashtable]]::new() + Server = @{ Logging = @{ Types = @{ test = @{