Skip to content

Commit

Permalink
Merge pull request #3922 from TeamAmaze/issue-unknown-symbol
Browse files Browse the repository at this point in the history
issue unknown symbol: replace `FtpService` on with `NetworkUtil`
  • Loading branch information
VishalNehra authored Sep 18, 2023
2 parents 6f36f4b + ab2e453 commit 0c48b9f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import android.os.Build.VERSION_CODES.N_MR1
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.filters.SmallTest
import com.amaze.filemanager.utils.NetworkUtil
import org.junit.Assert.assertNotNull
import org.junit.Assert.fail
import org.junit.Test
Expand Down Expand Up @@ -53,11 +54,11 @@ class FtpServiceStaticMethodsTest {
*/
if (SDK_INT >= N_MR1) {
ApplicationProvider.getApplicationContext<Context>().run {
if (!FtpService.isConnectedToLocalNetwork(this)) {
if (!NetworkUtil.isConnectedToLocalNetwork(this)) {
fail("Please connect your device to network to run this test!")
}

FtpService.getLocalInetAddress(this).also {
NetworkUtil.getLocalInetAddress(this).also {
assertNotNull(it)
assertNotNull(it?.hostAddress)
}
Expand Down

0 comments on commit 0c48b9f

Please sign in to comment.