Merge "Increase the number of test service names"

This commit is contained in:
Treehugger Robot
2022-01-28 08:08:01 +00:00
committed by Gerrit Code Review

View File

@@ -62,7 +62,7 @@ private const val DBG = false
class NsdManagerTest {
private val context by lazy { InstrumentationRegistry.getInstrumentation().context }
private val nsdManager by lazy { context.getSystemService(NsdManager::class.java) }
private val serviceName = "NsdTest%04d".format(Random().nextInt(1000))
private val serviceName = "NsdTest%09d".format(Random().nextInt(1_000_000_000))
private interface NsdEvent
private open class NsdRecord<T : NsdEvent> private constructor(