Skip to content

Merge of DownloadManager with upstream/develop #1178

Merge of DownloadManager with upstream/develop

Merge of DownloadManager with upstream/develop #1178

Triggered via pull request January 29, 2025 14:44
Status Failure
Total duration 11m 43s
Artifacts 1

unit_tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 12 warnings
Tests: Course/CourseTests/Presentation/Container/CourseDownloadHelperTests.swift#L217
testPublisher_whenReceivedNotProgressEvent_ShouldSendValue, Asynchronous wait failed: Exceeded timeout of 60 seconds, with unfulfilled expectations: "wait for added event", "wait for started event", "wait for paused event", "wait for canceled event", "wait for courseCanceled event", "wait for allCanceled event", "wait for finished event", "wait for deletedFile event", "wait for clearedAll event".
Tests: Course/CourseTests/Presentation/Container/CourseDownloadHelperTests.swift#L218
testPublisher_whenReceivedNotProgressEvent_ShouldSendValue, XCTAssertTrue failed - Expected: exactly 9 invocations of `.getDownloadTasks()`, but was: 0.
Tests: Course/CourseTests/Presentation/Container/CourseDownloadHelperTests.swift#L219
testPublisher_whenReceivedNotProgressEvent_ShouldSendValue, XCTAssertTrue failed - Expected: exactly 9 invocations of `.getCurrentDownloadTask()`, but was: 0.
Tests: Course/CourseTests/Presentation/Container/CourseDownloadHelperTests.swift#L220
testPublisher_whenReceivedNotProgressEvent_ShouldSendValue, XCTAssertEqual failed: ("0") is not equal to ("9")
Tests: Course/CourseTests/Presentation/Container/CourseDownloadHelperTests.swift#L221
testPublisher_whenReceivedNotProgressEvent_ShouldSendValue, XCTAssertEqual failed: ("nil") is not equal to ("Optional(Course.CourseDownloadValue(currentDownloadTask: Optional(Core.DownloadDataTask(id: "0_1", courseId: "123", blockId: "1", userId: 0, url: "http://test/test.mp4", fileName: "1.mp4", displayName: "", progress: 0.0, resumeData: nil, state: Core.DownloadState.waiting, type: Core.DownloadType.video, fileSize: 1000, actualSize: 0, lastModified: nil)), courseDownloadTasks: [Core.DownloadDataTask(id: "0_1", courseId: "123", blockId: "1", userId: 0, url: "http://test/test.mp4", fileName: "1.mp4", displayName: "", progress: 0.0, resumeData: nil, state: Core.DownloadState.waiting, type: Core.DownloadType.video, fileSize: 1000, actualSize: 0, lastModified: nil)], allDownloadTasks: [Core.DownloadDataTask(id: "0_1", courseId: "123", blockId: "1", userId: 0, url: "http://test/test.mp4", fileName: "1.mp4", displayName: "", progress: 0.0, resumeData: nil, state: Core.DownloadState.waiting, type: Core.DownloadType.video, fileSize: 1000, actualSize: 0, lastModified: nil)], notFinishedTasks: [Core.DownloadDataTask(id: "0_1", courseId: "123", blockId: "1", userId: 0, url: "http://test/test.mp4", fileName: "1.mp4", displayName: "", progress: 0.0, resumeData: nil, state: Core.DownloadState.waiting, type: Core.DownloadType.video, fileSize: 1000, actualSize: 0, lastModified: nil)], downloadableVerticals: Set([Course.VerticalsDownloadState(vertical: Core.CourseVertical(blockId: "", id: "", courseId: "123", displayName: "", type: Core.BlockType.vertical, completion: 0.0, childs: [Core.CourseBlock(blockId: "", id: "1", courseId: "123", topicId: Optional(""), graded: false, due: Optional(2025-01-29 14:53:52 +0000), completion: 0.0, type: Core.BlockType.video, displayName: "", studentUrl: "", webUrl: "", subtitles: nil, encodedVideo: Optional(Core.CourseBlockEncodedVideo(fallback: nil, desktopMP4: Optional(Core.CourseBlockVideo(url: Optional("http://test/test.mp4"), fileSize: Optional(1000), streamPriority: Optional(1))), mobileHigh: nil, mobileLow: nil, hls: nil, youtube: nil)), multiDevice: Optional(true), offlineDownload: nil)], webUrl: ""), state: Core.DownloadViewState.downloading)]), sequentialsStates: ["": Core.DownloadViewState.downloading], totalFilesSize: 1000, downloadedFilesSize: 0, largestBlocks: [], state: Course.OfflineView.DownloadAllState.cancel))")
Tests
Process completed with exit code 1.
Tests
xcodesorg/made/xcodes 1.6.0 is already installed and up-to-date. To reinstall 1.6.0, run: brew reinstall xcodes
Tests
git-lfs 3.6.1 is already installed and up-to-date. To reinstall 3.6.1, run: brew reinstall git-lfs
Tests: Core/Core/View/Base/Webview/WebView.swift#L118
instance method 'webView(_:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'
Tests: Core/Core/View/Base/Webview/Models/ReadabilityInjection.swift#L10
@preconcurrency attribute on conformance to 'Equatable' has no effect
Tests: Core/Core/View/Base/Webview/Models/ReadabilityInjection.swift#L10
@preconcurrency attribute on conformance to 'Identifiable' has no effect
Tests: Core/Core/View/Base/Webview/Models/AccessibilityInjection.swift#L13
@preconcurrency attribute on conformance to 'Equatable' has no effect
Tests: Core/Core/View/Base/Webview/Models/AccessibilityInjection.swift#L13
@preconcurrency attribute on conformance to 'Identifiable' has no effect
Tests: Core/Core/View/Base/Webview/WebViewHTML.swift#L85
instance method 'webView(_:decidePolicyFor:decisionHandler:)' nearly matches optional requirement 'webView(_:decidePolicyFor:decisionHandler:)' of protocol 'WKNavigationDelegate'
Tests: Core/Core/Network/OfflineSyncManager.swift#L58
consider using asynchronous alternative function
Tests: Core/Core/Network/OfflineSyncManager.swift#L62
consider using asynchronous alternative function
Tests: Core/Core/View/Base/Webview/WebViewHTML.swift#L85
instance method 'webView(_:decidePolicyFor:decisionHandler:)' nearly matches optional requirement 'webView(_:decidePolicyFor:decisionHandler:)' of protocol 'WKNavigationDelegate'
Tests: Core/Core/View/Base/Webview/WebView.swift#L118
instance method 'webView(_:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler:)' nearly matches optional requirement 'webView(_:runJavaScriptConfirmPanelWithMessage:initiatedByFrame:completionHandler:)' of protocol 'WKUIDelegate'

Artifacts

Produced during runtime
Name Size
test-output Expired
5.86 KB