@@ -30,7 +30,7 @@ func TestNewHTTPUnauthorizedHandler_UnauthorizedSignal(t *testing.T) {
3030 // An inner handler that signals unauthorized via the context flag.
3131 inner := http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
3232 // Simulate the MCP middleware detecting ErrUnauthorized.
33- signalUnauthorized (r .Context ())
33+ SignalUnauthorized (r .Context ())
3434 // The interceptingWriter will discard these writes.
3535 w .Header ().Set ("Content-Type" , "application/json" )
3636 w .WriteHeader (http .StatusOK )
@@ -52,7 +52,7 @@ func TestNewHTTPUnauthorizedHandler_UnauthorizedSignal(t *testing.T) {
5252func TestSignalUnauthorized_NoopWithoutContext (t * testing.T ) {
5353 // Should not panic when the context key is absent.
5454 require .NotPanics (t , func () {
55- signalUnauthorized (context .Background ())
55+ SignalUnauthorized (context .Background ())
5656 })
5757}
5858
@@ -61,7 +61,7 @@ func TestSignalUnauthorized_SetsFlag(t *testing.T) {
6161 ctx := context .WithValue (context .Background (), unauthorizedContextKey {}, flag )
6262
6363 require .False (t , flag .Load ())
64- signalUnauthorized (ctx )
64+ SignalUnauthorized (ctx )
6565 require .True (t , flag .Load ())
6666}
6767
0 commit comments