.github: add a staticcheck action (#326)

Add a staticcheck step to the lint job of the Test workflow, and fix
reported diagnostics.
This commit is contained in:
Robert Findley 2025-08-19 14:58:01 -04:00 • committed by GitHub
commit 46ba813860
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -539,10 +539,10 @@ func TestStreamableServerTransport(t *testing.T) {
},
{
name: "background",
tool: func(t *testing.T, ctx context.Context, ss *ServerSession) {
tool: func(t *testing.T, _ context.Context, ss *ServerSession) {
// Perform operations on a background context, and ensure the client
// receives it.
ctx = context.Background()
ctx := context.Background()
if err := ss.NotifyProgress(ctx, &ProgressNotificationParams{}); err != nil {
t.Errorf("Notify failed: %v", err)
}