Skip to content

Commit

Permalink
fix logging test
Browse files Browse the repository at this point in the history
  • Loading branch information
mdaneri committed Jun 26, 2024
1 parent 313b01f commit 8dd85ef
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/unit/Logging.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 = @{
Expand Down Expand Up @@ -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 = @{
Expand Down

0 comments on commit 8dd85ef

Please sign in to comment.