Skip to content

Commit 2302edc

Browse files
committed
Adjust test for new behavior
1 parent 55409e5 commit 2302edc

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

src/ServiceControl.AcceptanceTests/Recoverability/MessageFailures/When_ingesting_failed_message_with_missing_headers.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public async Task Should_be_ingested_when_minimal_required_headers_is_present()
3434
//No failure time will result in utc now being used
3535
Assert.That(failure.TimeOfFailure, Is.GreaterThan(testStartTime));
3636

37-
// Both host and endpoint name is currently needed so this will be null since no host can be detected from the failed q header
38-
Assert.That(failure.ReceivingEndpoint, Is.Null);
37+
Assert.That(failure.ReceivingEndpoint, Is.Not.Null);
38+
Assert.That(failure.ReceivingEndpoint.Name, Is.EqualTo(context.EndpointNameOfReceivingEndpoint));
3939
}
4040

4141
[Test]
@@ -45,10 +45,6 @@ public async Task Should_include_headers_required_by_ServicePulse()
4545
{
4646
c.AddMinimalRequiredHeaders();
4747

48-
// This is needed for ServiceControl to be able to detect both endpoint (via failed q header) and host via the processing machine header
49-
// Missing endpoint or host will cause a null ref in ServicePulse
50-
c.Headers[Headers.ProcessingMachine] = "MyMachine";
51-
5248
c.Headers[FaultsHeaderKeys.ExceptionType] = "SomeExceptionType";
5349
c.Headers[FaultsHeaderKeys.Message] = "Some message";
5450
})
@@ -62,8 +58,6 @@ public async Task Should_include_headers_required_by_ServicePulse()
6258

6359
// ServicePulse assumes that the receiving endpoint name is present
6460
Assert.That(failure.ReceivingEndpoint, Is.Not.Null);
65-
Assert.That(failure.ReceivingEndpoint.Name, Is.EqualTo(context.EndpointNameOfReceivingEndpoint));
66-
Assert.That(failure.ReceivingEndpoint.Host, Is.EqualTo("MyMachine"));
6761

6862
// ServicePulse needs both an exception type and description to render the UI in a resonable way
6963
Assert.That(failure.Exception.ExceptionType, Is.EqualTo("SomeExceptionType"));

0 commit comments

Comments
 (0)