Skip to content

flake: panic in TestCloserStack_CloseAfterContext #966

@blink-so

Description

@blink-so

CI Failure: https://github.com/coder/coder/actions/runs/17477349743

=== FAIL: cli TestCloserStack_CloseAfterContext (unknown)
    mock.go:202: Mock Clock - TickerFunc(<ctx>, 2s, <fn>, [closerStack]) call, matched 0 traps
panic: Fail in goroutine after TestCloserStack_Timeout has completed

goroutine 15012 [running]:
testing.(*common).Fail(0xc0007a9500)
	/opt/hostedtoolcache/go/1.24.6/x64/src/testing/testing.go:988 +0xcb
testing.(*common).Error(0xc0007a9500, {0xc001803de8?, 0x386c72b?, 0x0?})
	/opt/hostedtoolcache/go/1.24.6/x64/src/testing/testing.go:1104 +0x54
github.com/coder/coder/v2/cli.(*asyncCloser).Close(0xc018f21540)
	/home/runner/work/coder/coder/cli/ssh_internal_test.go:331 +0xb8
github.com/coder/coder/v2/cli.(*closerStack).close.func1.1(0x0?)
	/home/runner/work/coder/coder/cli/ssh.go:1219 +0xb4
created by github.com/coder/coder/v2/cli.(*closerStack).close.func1 in goroutine 14817
	/home/runner/work/coder/coder/cli/ssh.go:1216 +0xcd

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions