Tagged articles

synctest

4 articles · Page 1 of 1
TonyBai
TonyBai
Feb 10, 2026 · Backend Development

Eliminate Flaky Tests with Go’s New testing/nettest In‑Memory Network Stack

The article examines Go's testing challenges with real sockets and net.Pipe, introduces the proposed testing/nettest package that offers a fully in‑memory, buffered, asynchronous network stack with error injection, compares it to existing approaches, discusses its limitations, community reaction, and future integration into the standard library.

flaky testsgonet.Pipe
0 likes · 13 min read
Eliminate Flaky Tests with Go’s New testing/nettest In‑Memory Network Stack
Go Programming World
Go Programming World
Sep 5, 2025 · Backend Development

How to Test Concurrent Go Code with the New testing/synctest Package

Go’s built‑in concurrency primitives make parallel programming easy, but testing such code is tricky; this article explains the experimental testing/synctest package introduced in Go 1.24/1.25, shows how to rewrite flaky, slow tests into fast, reliable ones, and demonstrates its use with real‑world examples.

concurrencygogoroutine
0 likes · 15 min read
How to Test Concurrent Go Code with the New testing/synctest Package
BirdNest Tech Talk
BirdNest Tech Talk
Jun 11, 2025 · Backend Development

How Go’s New synctest Feature Eliminates Flaky Concurrent Tests

This article explains why Go tests that rely on goroutine scheduling are flaky, demonstrates the problem with concrete code examples, and shows how the experimental synctest feature provides deterministic execution by controlling synthetic time, coordinating goroutine lifecycles, and offering a reliable Wait primitive.

concurrencydeterministicflaky tests
0 likes · 12 min read
How Go’s New synctest Feature Eliminates Flaky Concurrent Tests
Radish, Keep Going!
Radish, Keep Going!
Dec 23, 2024 · Backend Development

Speed Up Go Cache Expiration Tests with testing/synctest

This article explains how Go's testing/synctest experiment speeds up cache expiration tests by using a virtual clock and bubble isolation, providing code examples that reduce a five‑second wait to milliseconds while ensuring reliable concurrent test execution.

concurrencygogo-cache
0 likes · 7 min read
Speed Up Go Cache Expiration Tests with testing/synctest