File tree 1 file changed +12
-4
lines changed
Tests/MuxUploadSDKTests/UploadManagerTests 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,19 @@ class UploadManagerTests: XCTestCase {
13
13
14
14
let uploadManager = UploadManager ( )
15
15
16
+ let uploadURL = try XCTUnwrap (
17
+ URL ( string: " https://www.example.com/upload " )
18
+ )
19
+
20
+ let videoInputURL = try XCTUnwrap (
21
+ URL ( string: " file://path/to/dummy/file/ " )
22
+ )
23
+
16
24
let chunkFileUploader = ChunkedFileUploader (
17
25
uploadInfo: UploadInfo (
18
26
id: UUID ( ) . uuidString,
19
- uploadURL: URL ( string : " https://www.example.com/upload " ) ! ,
20
- videoFile: URL ( string : " file://path/to/dummy/file/ " ) ! ,
27
+ uploadURL: uploadURL ,
28
+ videoFile: videoInputURL ,
21
29
chunkSize: 8 ,
22
30
retriesPerChunk: 2 ,
23
31
optOutOfEventTracking: true
@@ -32,8 +40,8 @@ class UploadManagerTests: XCTestCase {
32
40
let duplicateChunkFileUploader = ChunkedFileUploader (
33
41
uploadInfo: UploadInfo (
34
42
id: UUID ( ) . uuidString,
35
- uploadURL: URL ( string : " https://www.example.com/upload " ) ! ,
36
- videoFile: URL ( string : " file://path/to/dummy/file/ " ) ! ,
43
+ uploadURL: uploadURL ,
44
+ videoFile: videoInputURL ,
37
45
chunkSize: 8 ,
38
46
retriesPerChunk: 2 ,
39
47
optOutOfEventTracking: true
You can’t perform that action at this time.
0 commit comments