@@ -179,8 +179,6 @@ func TestProvisionerd(t *testing.T) {
179
179
})
180
180
181
181
t .Run ("TooLargeTar" , func (t * testing.T ) {
182
- // Ensures tars with "../../../etc/passwd" as the path
183
- // are not allowed to run, and will fail the job.
184
182
t .Parallel ()
185
183
done := make (chan struct {})
186
184
t .Cleanup (func () {
@@ -193,7 +191,7 @@ func TestProvisionerd(t *testing.T) {
193
191
JobId : "test" ,
194
192
Provisioner : "someprovisioner" ,
195
193
TemplateSourceArchive : testutil .CreateTar (t , map [string ]string {
196
- "toolarge.txt" : string (make ([]byte , 10 * 1024 * 1024 )),
194
+ "toolarge.txt" : string (make ([]byte , 4 * 1024 * 1024 )),
197
195
}),
198
196
Type : & proto.AcquiredJob_TemplateImport_ {
199
197
TemplateImport : & proto.AcquiredJob_TemplateImport {
@@ -215,7 +213,7 @@ func TestProvisionerd(t *testing.T) {
215
213
}, provisionerd.LocalProvisioners {
216
214
"someprovisioner" : createProvisionerClient (t , done , provisionerTestServer {}),
217
215
})
218
- require .Condition (t , closedWithin (completeChan , testutil .WaitMedium ))
216
+ require .Condition (t , closedWithin (completeChan , testutil .WaitSuperLong * 100 ))
219
217
require .NoError (t , closer .Close ())
220
218
})
221
219
0 commit comments