AbLegacy: route health timestamps through the injectable Clock; drop redundant per-project TreatWarningsAsErrors #768
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
AbLegacyDriverstamps health timestamps from rawDateTime.UtcNow(≈ lines 289, 511, 1083); only the backoff path uses the injectableClock. Tests of those timestamps need spin-waits (#767). Route the health stamps throughClockso tests can control time. Also tidy-up: the 61 per-projectTreatWarningsAsErrorslines are redundant since #766 set it globally in Directory.Build.props.Fixed on master
919009c5: AbLegacyDriver health stamps (and read sample timestamps + host-state change times) read the injectable Clock(); NativePcccBridgeStatusHealthTests uses a manual clock (init T0, read T1) and asserts LastSuccessfulRead == T1 exactly (stronger than the old not-equal + spin). Removed 75 redundant per-project TreatWarningsAsErrors lines (64 src + 11 tests; tools/mem-probe keeps its explicit false). Evidence: AbLegacy 859 passed; all 6 tests in the class fail with the driver change reverted; Release slnx 0 warnings/0 errors; planted CS0168 still fails the build in a src project and in Commons.Tests.