Skip to content

Pick the second server by port order in the server picker spec - #1216

Merged
yansfil merged 1 commit into
mainfrom
fix/server-ports-picker-order
Oct 15, 2026
Merged

yansfil merged 1 commit into
mainfrom
fix/server-ports-picker-order

Conversation

@yansfil

@yansfil yansfil commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Related: #1185

Summary

main의 push 검사가 b101aa9(#1199 머지)에서 빨갛게 됐습니다.
원인은 #1185가 새로 넣은 web/e2e/server-ports.spec.ts입니다.
서버 고르기 목록은 포트 번호 순인데, 스펙은 두 번째로 띄운 서버가 늘 맨 아래라고 보고 End를 눌렀습니다.
포트는 시스템이 정하므로 두 번째 포트가 더 작으면 매번 실패합니다(대략 절반).
스펙이 포트 순서를 보고 End 또는 Home으로 두 번째 서버를 고르게 고쳤습니다. 제품 코드는 그대로입니다.

Review

  • 판단해 주세요: 목록을 포트 순으로 두는 것이 맞다고 보고 스펙만 고쳤습니다(web/src/RunningServers.tsx의 정렬).

Evidence

  • 확인한 것: 첫 서버를 65001에 고정해 두 번째 포트를 더 작게 만들면, 고치기 전 스펙은 CI와 같은 오류(Expected 두 번째, Received 65001)로 실패하고 고친 스펙은 통과.
  • 확인한 것: macOS 로컬에서 고친 스펙 3회 반복 통과(두 번째 포트가 더 큰 경우), eslint와 e2e 크기 검사 통과.
  • 확인하지 못한 것: Linux와 Windows 실행은 이 PR의 CI에 맡깁니다.

The picker lists listeners by port, and each fixture server takes a port
the system chooses, so the second server is last only when its port is
the higher one. The spec pressed End and expected the second server, and
failed both tries on main's push run for b101aa9 whenever the second
port came out lower.
@yansfil
yansfil merged commit f77c2a4 into main Oct 15, 2026
15 checks passed
@yansfil
yansfil deleted the fix/server-ports-picker-order branch October 15, 2026 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant