@@ -73,7 +73,7 @@ func TestServer(t *testing.T) {
73
73
})
74
74
require .NoError (t , err )
75
75
cancelFunc ()
76
- require .ErrorIs (t , <- errC , context . Canceled )
76
+ require .NoError (t , <- errC )
77
77
})
78
78
t .Run ("BuiltinPostgres" , func (t * testing.T ) {
79
79
t .Parallel ()
@@ -101,7 +101,7 @@ func TestServer(t *testing.T) {
101
101
return err == nil && rawURL != ""
102
102
}, 3 * time .Minute , testutil .IntervalFast , "failed to get access URL" )
103
103
cancelFunc ()
104
- require .ErrorIs (t , <- errC , context . Canceled )
104
+ require .NoError (t , <- errC )
105
105
})
106
106
t .Run ("BuiltinPostgresURL" , func (t * testing.T ) {
107
107
t .Parallel ()
@@ -144,7 +144,7 @@ func TestServer(t *testing.T) {
144
144
pty .ExpectMatch ("View the Web UI: http://localhost:3000/" )
145
145
146
146
cancelFunc ()
147
- require .ErrorIs (t , <- errC , context . Canceled )
147
+ require .NoError (t , <- errC )
148
148
})
149
149
150
150
// Validate that an https scheme is prepended to a remote access URL
@@ -176,7 +176,7 @@ func TestServer(t *testing.T) {
176
176
pty .ExpectMatch ("View the Web UI: https://foobarbaz.mydomain" )
177
177
178
178
cancelFunc ()
179
- require .ErrorIs (t , <- errC , context . Canceled )
179
+ require .NoError (t , <- errC )
180
180
})
181
181
182
182
t .Run ("NoWarningWithRemoteAccessURL" , func (t * testing.T ) {
@@ -205,7 +205,7 @@ func TestServer(t *testing.T) {
205
205
pty .ExpectMatch ("View the Web UI: https://google.com" )
206
206
207
207
cancelFunc ()
208
- require .ErrorIs (t , <- errC , context . Canceled )
208
+ require .NoError (t , <- errC )
209
209
})
210
210
211
211
t .Run ("TLSBadVersion" , func (t * testing.T ) {
@@ -291,7 +291,7 @@ func TestServer(t *testing.T) {
291
291
require .NoError (t , err )
292
292
293
293
cancelFunc ()
294
- require .ErrorIs (t , <- errC , context . Canceled )
294
+ require .NoError (t , <- errC )
295
295
})
296
296
// This cannot be ran in parallel because it uses a signal.
297
297
//nolint:paralleltest
@@ -322,7 +322,7 @@ func TestServer(t *testing.T) {
322
322
// We cannot send more signals here, because it's possible Coder
323
323
// has already exited, which could cause the test to fail due to interrupt.
324
324
err = <- serverErr
325
- require .ErrorIs (t , err , context . Canceled )
325
+ require .NoError (t , err )
326
326
})
327
327
t .Run ("TracerNoLeak" , func (t * testing.T ) {
328
328
t .Parallel ()
@@ -341,7 +341,7 @@ func TestServer(t *testing.T) {
341
341
errC <- root .ExecuteContext (ctx )
342
342
}()
343
343
cancelFunc ()
344
- require .ErrorIs (t , <- errC , context . Canceled )
344
+ require .NoError (t , <- errC )
345
345
require .Error (t , goleak .Find ())
346
346
})
347
347
t .Run ("Telemetry" , func (t * testing.T ) {
0 commit comments