diff --git a/management/internals/modules/agentnetwork/settings_etag_test.go b/management/internals/modules/agentnetwork/settings_etag_test.go index b892ee88c..8245f28be 100644 --- a/management/internals/modules/agentnetwork/settings_etag_test.go +++ b/management/internals/modules/agentnetwork/settings_etag_test.go @@ -130,8 +130,8 @@ func TestUpdateSettingsPreconditionSerializesConcurrentWriters(t *testing.T) { // TestUpdateSettingsUnconditionalIgnoresStaleness pins the back-compatibility // half: without a precondition the manager keeps last-write-wins, which is -// what the dashboard relies on and what every client written before this -// existed does. +// what the dashboard relies on and what any client that predates conditional +// requests does. func TestUpdateSettingsUnconditionalIgnoresStaleness(t *testing.T) { ctx := context.Background() f := newBootstrapFixture(t) diff --git a/management/internals/modules/agentnetwork/types/settings_test.go b/management/internals/modules/agentnetwork/types/settings_test.go index d911cee27..3ab6c2a39 100644 --- a/management/internals/modules/agentnetwork/types/settings_test.go +++ b/management/internals/modules/agentnetwork/types/settings_test.go @@ -131,9 +131,9 @@ func TestSettings_ETagExclusions(t *testing.T) { // precision, the validator a bootstrap hands out never matches again and the // documented "conditional PUT without an intervening GET" is a permanent 412. // -// Asserted here on the type rather than through a store, so it holds without -// running the suite against every engine — which is what let this through the -// first time, since sqlite preserves nanoseconds and every other test uses it. +// Asserted on the type rather than through a store, so it holds without running +// the suite against every engine. The sqlite test store preserves nanoseconds, +// so a sqlite-only suite cannot observe the truncation at all. func TestSettings_ETagSurvivesTimestampTruncation(t *testing.T) { inMemory := etagSettings() require.NotZero(t, inMemory.CreatedAt.Nanosecond(), "the fixture must carry sub-second precision to prove anything")