@@ -11,7 +11,6 @@ import (
1111 "os"
1212 "os/exec"
1313 "strings"
14- "sync/atomic"
1514 "testing"
1615 "time"
1716
@@ -22,12 +21,6 @@ import (
2221 "github.com/gitpod-io/gitpod/supervisor/api"
2322)
2423
25- func newBool (b bool ) * atomic.Bool {
26- result := atomic.Bool {}
27- result .Store (b )
28- return & result
29- }
30-
3124func TestTitle (t * testing.T ) {
3225 t .Skip ("skipping flakey tests" )
3326
@@ -66,7 +59,7 @@ func TestTitle(t *testing.T) {
6659 }
6760 defer os .RemoveAll (tmpWorkdir )
6861
69- terminalService := NewMuxTerminalService (mux , newBool ( true ) )
62+ terminalService := NewMuxTerminalService (mux )
7063 terminalService .DefaultWorkdir = tmpWorkdir
7164
7265 term , err := terminalService .OpenWithOptions (ctx , & api.OpenTerminalRequest {}, TermOptions {
@@ -204,7 +197,7 @@ func TestAnnotations(t *testing.T) {
204197 mux := NewMux ()
205198 defer mux .Close (ctx )
206199
207- terminalService := NewMuxTerminalService (mux , newBool ( true ) )
200+ terminalService := NewMuxTerminalService (mux )
208201 var err error
209202 if test .Opts == nil {
210203 _ , err = terminalService .Open (ctx , test .Req )
@@ -255,7 +248,7 @@ func TestTerminals(t *testing.T) {
255248 }
256249 for _ , test := range tests {
257250 t .Run (test .Desc , func (t * testing.T ) {
258- terminalService := NewMuxTerminalService (NewMux (), newBool ( true ) )
251+ terminalService := NewMuxTerminalService (NewMux ())
259252 resp , err := terminalService .Open (context .Background (), & api.OpenTerminalRequest {})
260253 if err != nil {
261254 t .Fatal (err )
@@ -336,7 +329,7 @@ func TestWorkDirProvider(t *testing.T) {
336329 mux := NewMux ()
337330 defer mux .Close (ctx )
338331
339- terminalService := NewMuxTerminalService (mux , newBool ( true ) )
332+ terminalService := NewMuxTerminalService (mux )
340333
341334 type AssertWorkDirTest struct {
342335 expectedWorkDir string
0 commit comments