Skip to content

Commit 6a2cf5d

Browse files
committed
fix windows-pwsh tests
1 parent 21886ce commit 6a2cf5d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tests/userfeedback.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Describe 'UserFeedback' {
1111

1212
AfterEach {
1313
$events.Clear()
14-
$transport.Envelopes.Clear()
14+
$transport.Clear()
1515
Stop-Sentry
1616
}
1717

tests/utils.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ class RecordingTransport:Sentry.Extensibility.ITransport
77
$this.envelopes.Enqueue($envelope);
88
return [System.Threading.Tasks.Task]::CompletedTask;
99
}
10+
11+
[void] Clear()
12+
{
13+
$this.envelopes = [System.Collections.Concurrent.ConcurrentQueue[Sentry.Protocol.Envelopes.Envelope]]::new()
14+
}
1015
}
1116

1217
class TestLogger:Sentry.Infrastructure.DiagnosticLogger

0 commit comments

Comments
 (0)