Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Jun 9, 2022
1 parent 5905cd7 commit 11647dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
reason: ratelimit_backoff
}
],
timestamp: Date_MaxValue
timestamp: DateTime_1
},
eventItemJson: {
event_id: Guid_1,
platform: csharp,
sdk: {},
sent_at: DateTime_1,
timestamp: DateTime_2
sent_at: DateTime_2,
timestamp: DateTime_3
}
}
8 changes: 2 additions & 6 deletions test/Sentry.Tests/Internals/Http/HttpTransportTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -774,16 +774,12 @@ public Task ProcessEnvelope_ShouldAttachClientReport()
{
var options = new SentryOptions();

var expectedTimestamp = DateTimeOffset.MaxValue;
var clock = Substitute.For<ISystemClock>();
clock.GetUtcNow().Returns(expectedTimestamp);

var recorder = new ClientReportRecorder(options, clock);
var recorder = new ClientReportRecorder(options);
options.ClientReportRecorder = recorder;

var logger = Substitute.For<IDiagnosticLogger>();

var httpTransport = Substitute.For<HttpTransportBase>(options, null, clock);
var httpTransport = Substitute.For<HttpTransportBase>(options, null, null);

// add some fake discards for the report
recorder.RecordDiscardedEvent(DiscardReason.NetworkError, DataCategory.Internal);
Expand Down

0 comments on commit 11647dd

Please sign in to comment.