diff --git a/middleware/session/middleware_test.go b/middleware/session/middleware_test.go index db0d9f33..b8c545c3 100644 --- a/middleware/session/middleware_test.go +++ b/middleware/session/middleware_test.go @@ -1,7 +1,6 @@ package session import ( - "context" "io" "net/http/httptest" "strings" @@ -501,16 +500,3 @@ func Test_Session_Context(t *testing.T) { require.NoError(t, err) require.Equal(t, "success", string(body)) } - -func Test_Session_GoContext_EdgeCases(t *testing.T) { - t.Parallel() - - // Test with nil context - sess := FromContext(nil) //nolint:staticcheck // Intentionally testing nil context behavior - require.Nil(t, sess, "Session should be nil with nil context") - - // Test with context that doesn't have a session - ctx := context.Background() - sess = FromContext(ctx) - require.Nil(t, sess, "Session should be nil when not in context") -}