File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1773,12 +1773,11 @@ func TestAgent_ReconnectingPTY(t *testing.T) {
1773
1773
// CODER_TEST_USE_DOCKER=1 go test -count=1 ./agent -run TestAgent_ReconnectingPTYContainer
1774
1774
func TestAgent_ReconnectingPTYContainer (t * testing.T ) {
1775
1775
t .Parallel ()
1776
- if ctud , ok := os .LookupEnv ("CODER_TEST_USE_DOCKER" ); ! ok || ctud != "1" {
1776
+ if os .Getenv ("CODER_TEST_USE_DOCKER" ) != "1" {
1777
1777
t .Skip ("Set CODER_TEST_USE_DOCKER=1 to run this test" )
1778
1778
}
1779
1779
1780
- ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
1781
- defer cancel ()
1780
+ ctx := testutil .Context (t , testutil .WaitLong )
1782
1781
1783
1782
pool , err := dockertest .NewPool ("" )
1784
1783
require .NoError (t , err , "Could not connect to docker" )
You can’t perform that action at this time.
0 commit comments