Shopify / Shopify/toxiproxy

Test # of roundtrips

Open
#170 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
12.4k
Forks
510
PR merge metrics
No merged PRs in 30d

Description

It'd be useful to have a call to be able to know how many roundtrips it did during a certain amount of time. For a test, something like this:

assert_toxiproxy_roundtrips(3) do
  3.times { redis_client.get("hello") }
end

This could help minimize roundtrips in hot-paths and asserting they don't creep above some limit.

Contributor guide

No contributing guide indexed for this repository

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

No files or tests are named. Start by locating the existing test helpers and the proxy's roundtrip handling, then determine how the proposed assertion could observe a bounded operation. Done means a test can count roundtrips during the block and enforce the requested limit.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.