test: Fix test timeouts due to contexts created too early (#7242)

This commit is contained in:
Mathias Fredriksson
2023-04-21 17:32:25 +03:00
committed by GitHub
parent ea78ca5dff
commit 6f06f8dadb
2 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -980,7 +980,6 @@ func TestReadFileWithTemplateUpdate(t *testing.T) {
t.Parallel()
t.Run("HasTemplateUpdate", func(t *testing.T) {
t.Parallel()
ctx := testutil.Context(t, testutil.WaitMedium)
// Upload a file
client := coderdenttest.New(t, nil)
@@ -991,6 +990,8 @@ func TestReadFileWithTemplateUpdate(t *testing.T) {
},
})
ctx := testutil.Context(t, testutil.WaitLong)
resp, err := client.Upload(ctx, codersdk.ContentTypeTar, bytes.NewReader(make([]byte, 1024)))
require.NoError(t, err)