on main help sign in
ci: skip two flacky tests depending on os (#1606)
commit7fcdf901a12aea245eb66de75cd92b7b46d882c6 authorAndrey Nering <andreynering@users.noreply.github.com> dateThu 11 Dec 2025, 15:14 (1 year ago) parentf32733c
2 files changed+9
internal/agent/agent_test.go+4 internal/shell/background_test.go+5
internal/agent/agent_test.go+4
@@ -453,6 +453,10 @@ func TestCoderAgent(t *testing.T) {
453453 require.Contains(t, string(content), "Hello, Crush!", "Expected file to contain 'Hello, Crush!'")
454454 })
455455 t.Run("sourcegraph tool", func(t *testing.T) {
456+ if runtime.GOOS == "darwin" {
457+ t.Skip("skipping flacky test on macos for now")
458+ }
459+
456460 agent, env := setupAgent(t, pair)
457461
458462 session, err := env.sessions.Create(t.Context(), "New Session")
internal/shell/background_test.go+5
@@ -2,6 +2,7 @@ package shell
22
33import (
44 "context"
5+ "runtime"
56 "strings"
67 "testing"
78 "time"
@@ -171,6 +172,10 @@ func TestBackgroundShell_WithBlockFuncs(t *testing.T) {
171172}
172173
173174func TestBackgroundShellManager_List(t *testing.T) {
175+ if runtime.GOOS == "windows" {
176+ t.Skip("skipping flacky test on windows")
177+ }
178+
174179 t.Parallel()
175180
176181 ctx := context.Background()