Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

`EventListenerTest.timeToFirstByteHttp1OverHttps` flaky

Open
#9,677 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
53/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
kotlin
Domain
testing

Research direction

Start with EventListenerTest.timeToFirstByteHttp1OverHttps at EventListenerTest.kt:1746 and the shared timeToFirstByte test at line 1856; inspect how EventRecorder.takeEvent at EventRecorder.kt:109 measures the event. Run the failing JVM test and investigate why its observed time (452 ms) exceeds the expected value and tolerance. Done when the test reliably passes without weakening the intended timing check.

Written by the indexing model from the issue text.

Description

tests
EventListenerTest[jvm] > timeToFirstByteHttp1OverHttps()[jvm] FAILED
    org.opentest4j.AssertionFailedError: expected <452.0> to be close to <250.0> with delta of <100.0>, but was not
        at app//okhttp3.EventRecorder.takeEvent(EventRecorder.kt:109)
        at app//okhttp3.EventListenerTest.timeToFirstByte(EventListenerTest.kt:1856)
        at app//okhttp3.EventListenerTest.timeToFirstByteHttp1OverHttps(EventListenerTest.kt:1746)
Dominant language
Kotlin
Stars
47.1k
Forks
9.3k
Avg merge
18h 18m
Merged PRs (30d)
15

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from lysine-dev/okhttp

All issues in lysine-dev/okhttp

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.