Skip to content

Commit 92130fe

Browse files
johnstcnmafredridannykopping
authored
Apply suggestions from code review
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com> Co-authored-by: Danny Kopping <danny@coder.com>
1 parent 690e91c commit 92130fe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

agent/agent_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,12 +1773,11 @@ func TestAgent_ReconnectingPTY(t *testing.T) {
17731773
// CODER_TEST_USE_DOCKER=1 go test -count=1 ./agent -run TestAgent_ReconnectingPTYContainer
17741774
func TestAgent_ReconnectingPTYContainer(t *testing.T) {
17751775
t.Parallel()
1776-
if ctud, ok := os.LookupEnv("CODER_TEST_USE_DOCKER"); !ok || ctud != "1" {
1776+
if os.Getenv("CODER_TEST_USE_DOCKER") != "1" {
17771777
t.Skip("Set CODER_TEST_USE_DOCKER=1 to run this test")
17781778
}
17791779

1780-
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
1781-
defer cancel()
1780+
ctx := testutil.Context(t, testutil.WaitLong)
17821781

17831782
pool, err := dockertest.NewPool("")
17841783
require.NoError(t, err, "Could not connect to docker")

0 commit comments

Comments
 (0)