fix(historian): T9 review round 1 - dup-key retry counter, alarm Classify retries unknown, test hardening
Claude-Session: https://claude.ai/code/session_01Ef2ozxS7QPanGT8uoATbTe
This commit is contained in:
@@ -44,4 +44,12 @@ public sealed class AlarmEventIdTests
|
||||
})
|
||||
SqlServerAlarmHistorianWriter.ComputeEventId(other).ShouldNotBe(basis);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(typeof(InvalidOperationException))]
|
||||
[InlineData(typeof(ArgumentException))]
|
||||
[InlineData(typeof(FormatException))]
|
||||
public void Non_SQL_exceptions_retry_rather_than_dead_letter(Type type) =>
|
||||
SqlServerAlarmHistorianWriter.Classify((Exception)Activator.CreateInstance(type)!)
|
||||
.ShouldBe(HistorianWriteOutcome.RetryPlease);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user