swiftlang / swiftlang/swift-corelibs-libdispatch

[SR-4647] foundation: TestFoundation/TestNSURLSession.swift test sometimes fails with a timeout

Open
#693 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug libdispatch
Dominant language
C
Stars
2.6k
Forks
496
Avg merge
2d 6h
Merged PRs (30d)
3

Description

Previous ID SR-4647
Radar None
Original Reporter @eeckstein
Type Bug
Additional Detail from JIRA
Votes 0
Component/s libdispatch
Labels Bug
Assignee None
Priority Medium

md5: 4a1394511243d61e45bb58adf2ad7e6d

Issue Description:

TestFoundation/TestNSURLSession.swift:254: error: TestURLSession.test_downloadTaskWithURLAndHandler : Asynchronous wait failed - Exceeded timeout of 12.0 seconds, with unfulfilled expectations: download task with handler

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with TestFoundation/TestNSURLSession.swift, especially the test at line 254, and run TestURLSession.test_downloadTaskWithURLAndHandler to reproduce the timeout. Trace the asynchronous expectation and download task behavior; done means the test no longer intermittently exceeds its 12-second timeout.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.