service-page test writes into the first test's deleted database
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- testing-qa
Hướng nghiên cứu
Bắt đầu với reference-implementations/dacs-directory/test/service-page.test.ts, dòng 57-59 và 79-81, nơi mỗi test tạo thư mục dữ liệu riêng và đặt DACS_DIRECTORY_DATA; sau đó so sánh với carried-marker-signer.test.ts, dòng 14-16, nơi biến này được đặt trước lần import đầu tiên. Xác nhận lỗi bằng cách kiểm tra xem test thứ hai có ghi vào cơ sở dữ liệu mà t.after của test thứ nhất đã xóa hay không. Hoàn thành khi cả hai test dùng chung một thư mục được thiết lập trước lần import đầu tiên, thư mục đó được xóa trong một test.after duy nhất, mỗi test dùng listing id riêng biệt và bộ kiểm thử chạy thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Where: reference-implementations/dacs-directory/test/service-page.test.ts:81 (on phase0-completion at the linked commit)
What goes wrong: Both tests in test/service-page.test.ts create their own data folder and set DACS_DIRECTORY_DATA (lines 57-59 and 79-81), but the store module is imported dynamically in each. After the first test imports it, the module is cached and keeps the first test's folder open, which is deleted in that test's t.after. The second test therefore writes into a deleted database and still passes, so it is not isolated.
Suggested fix: Create one data folder at the top of the file and set DACS_DIRECTORY_DATA before the first import (as reference-implementations/dacs-directory/test/carried-marker-signer.test.ts:14-16 does), removing it in a single test.after. Give each test unique listing ids instead of a fresh folder.
Size: Small
This comes from a code review, not from a failing run, so please confirm it before starting. Send the fix as a pull request to phase0-completion. It merges once tests pass and a maintainer has approved it.
- Ngôn ngữ chính
- TypeScript
- Star
- 0
- Fork
- 3
- Merge trung bình
- 20 giờ 26 phút
- Pull request đã merge (30 ngày)
- 119
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DACS-Agent-commerce/Community
-
Payment safety page: explain 'preimage' and 'claim' and name the cross-chain open state preciselyĐang mởcontributors-section
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
DACS-Agent-commerce/Community#366 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
contributors-section
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
DACS-Agent-commerce/Community#361 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
contributors-section
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
DACS-Agent-commerce/Community#359 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
contributors-section
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
DACS-Agent-commerce/Community#354 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
OpenAPI entry for the listing version route omits its 409 responseCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởcontributors-section
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
DACS-Agent-commerce/Community#348 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của DACS-Agent-commerce/Community
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
GetStream/stream-chat-react#3467 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
vercel-labs/ui#1139 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
generate_image reference URL guard lets through IPv4-mapped IPv6 hosts and 100.64.0.0/10Có thể đã có người làm @goranai đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] IntegerRange.contains counts a non-integer just above max as inside an inclusive rangeĐang mởbot:ai-assisted component:platform-js status:untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
midnightntwrk/platform-js#93 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100