mirror of
https://github.com/coder/coder.git
synced 2025-07-08 11:39:50 +00:00
test: fix TestUploadFileLargeModuleFiles flake, context to subtest (#18395)
Declared context outside the subtest t.Parallel.
This commit is contained in:
@ -23,8 +23,6 @@ import (
|
||||
func TestUploadFileLargeModuleFiles(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
ctx := testutil.Context(t, testutil.WaitMedium)
|
||||
|
||||
// Create server
|
||||
server, db, _, _ := setup(t, false, &overrides{
|
||||
externalAuthConfigs: []*externalauth.Config{{}},
|
||||
@ -42,6 +40,8 @@ func TestUploadFileLargeModuleFiles(t *testing.T) {
|
||||
t.Run(fmt.Sprintf("size_%d_bytes", size), func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
ctx := testutil.Context(t, testutil.WaitMedium)
|
||||
|
||||
// Generate test module files data
|
||||
moduleData := make([]byte, size)
|
||||
_, err := crand.Read(moduleData)
|
||||
|
Reference in New Issue
Block a user