# Microblog: TestMain can cause one to question reality

DevFeed: [Microblog: TestMain can cause one to question reality](<https://devfeed.tech/articles/microblog-testmain-can-cause-one-to-question-reality-20837.md>)

Original publisher: [Read original article](<https://dave.cheney.net/2024/02/22/microblog-testmain-can-cause-one-to-question-reality>)

Author: Dave Cheney

Published: 2024-02-21T21:04:26Z

Content type: opinion

Language: en

Sources: [Dave Cheney](<https://devfeed.tech/sources/dave-cheney.md>)

Topics: [Go Language](<https://devfeed.tech/topics/go-language.md>), [test](<https://devfeed.tech/topics/test.md>), [bug](<https://devfeed.tech/topics/bug.md>), [Logging](<https://devfeed.tech/topics/logging.md>)

Tags: [bug](<https://devfeed.tech/tags/bug.md>), [go](<https://devfeed.tech/tags/go.md>), [goroutines](<https://devfeed.tech/tags/goroutines.md>), [logging](<https://devfeed.tech/tags/logging.md>), [test](<https://devfeed.tech/tags/test.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>)

## AI overview

A one-line change caused a Go test to appear as though a failing test was not failing or being run. Attempts to change Go versions and run the tests elsewhere did not resolve the issue; a commented-out check and a logging library that spawns background goroutines were involved.

## Source excerpt

This morning a one line change had several of us tearing up the fabric of reality trying to understand why a failing test wasn't failing, or, in fact, being run at all. Increasingly frantic efforts to upgrade/downgrade Go, run the tests on another machine, run the tests in CI, all served to only unnerve us [...]