mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
test: Fix test timeouts due to contexts created too early (#7242)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user