Repository navigation
Conversation
`OfficialNeteaseClient` gained `eapiOrigin` and `clientlogOrigin` / `clientlog3Origin` between `streamOrigin` and `metadataCache`, so the positional `CloudMetadataCache` argument in this test no longer matches any parameter and `:app:testDebugUnitTest` fails to compile on main: Argument type mismatch: actual type is 'CloudMetadataCache', but 'String' was expected. Pass it as a named argument so the call survives further origin parameters being added.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
:app:testDebugUnitTestdoes not compile onmainright now:OfficialNeteaseClientis(cookie, client, webOrigin, streamOrigin, eapiOrigin, clientlogOrigin, clientlog3Origin, metadataCache), but this test still passes the cache as the 5th positional argument, so it lands oneapiOrigin. Looks like it was left behind when the extra origin parameters were added in ff00e1d.Passing it as
metadataCache = ...fixes the compile error and also keeps the call valid if more origin parameters get added later. One line, test-only, no production code touched.Result
After this change
:app:testDebugUnitTestcompiles again — that is the whole scope of this PR.Note that 6 tests still fail once the suite runs (JDK 23, 344 tests). I am not touching them here, because it is not obvious whether the code or the expectations are out of date and that call is better made by you:
AuraAudioProcessorTest.antiClippingTamesInterSampleOversInBypassWhileLeavingNormalSignalsUntouched—java.nio.BufferUnderflowExceptionCloudMetadataCacheTest.boundedCacheEvictsAndSelectiveInvalidationKeepsOtherPlaylists— expectednull, was{"id":1}CloudMetadataCacheTest.repeatedPagesUseDiskButRefreshAndDifferentAccountsUseNetwork— expected2, was1OfficialNeteaseClientTest.requestsPlaybackAtOfficialEapiWithoutPuttingSessionInUrl— expected/eapi/song/enhance/pl..., was/weapi/song/enhance/pl...OfficialNeteaseClientTest.musicDetailUsesEapiFirstAndFallsBackToWeapiWhenEmpty—AssertionErrorQqMusicApiTest.customAndOfficialArtistAlbumsAndTrackListsClassifyConsistently— expected ay.qq.com/music/photo_new/...cover URL, was emptyThe two
OfficialNeteaseClientTestfailures look like the eapi-first behaviour changed without the expectations following; theCloudMetadataCacheTestones look like eviction/account-keying semantics moved. Worth a look when you have time — with JDK 17 another 8 tests also fail onUnsupportedClassVersionError, so JDK 21+ is needed to see the real picture.