[proxy] Name what the warm-probe assertions are pinning

The two assertions in the HEAD subtest carried no failure message, unlike the
rest of the file. Say which half failed.
This commit is contained in:
mlsmaycon
2026-08-11 13:23:10 +00:00
committed by GitHub
parent 921b98703d
commit df877f743f

View File

@@ -1079,9 +1079,11 @@ func TestRouter_NonInferenceRequiresReadMethod(t *testing.T) {
out, err := mw.Invoke(context.Background(), in)
require.NoError(t, err)
assert.Equal(t, middleware.DecisionAllow, out.Decision)
assert.Equal(t, middleware.DecisionAllow, out.Decision,
"the HEAD warm probe must still reach the upstream")
nonInference, _ := metaValue(t, out.Metadata, middleware.KeyLLMNonInference)
assert.Equal(t, "true", nonInference)
assert.Equal(t, "true", nonInference,
"the HEAD warm probe carries no model to meter")
})
}