File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
main/kotlin/com/statsig/sdk
test/java/com/statsig/sdk Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -136,8 +136,9 @@ internal class SpecStore constructor(
136
136
private suspend fun syncIdListsFromNetwork () {
137
137
var response: Response ? = null
138
138
try {
139
+ val api = options.api ? : STATSIG_API_URL_BASE
139
140
response = network.post(
140
- options.api + " /get_id_lists" ,
141
+ " $api /get_id_lists" ,
141
142
mapOf (" statsigMetadata" to statsigMetadata),
142
143
emptyMap(),
143
144
this .options.initTimeoutMs,
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import java.util.concurrent.TimeUnit
23
23
24
24
private const val BACKOFF_MULTIPLIER : Int = 10
25
25
private const val MS_IN_S : Long = 1000
26
- private const val STATSIG_API_URL_BASE : String = " https://statsigapi.net/v1"
26
+ const val STATSIG_API_URL_BASE : String = " https://statsigapi.net/v1"
27
27
private const val STATSIG_CDN_URL_BASE : String = " https://api.statsigcdn.com/v1"
28
28
29
29
internal class StatsigNetwork (
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class CustomLoggerTest {
22
22
@Test
23
23
fun testExceptionLogger () = runBlocking {
24
24
server.initialize(" server-secret" , StatsigOptions (customLogger = fakeLogger))
25
- assert (warningMessage.size == 2 ) // One from network one from gson
25
+ assert (warningMessage.size == 1 )
26
26
server.shutdown()
27
27
server.checkGate(StatsigUser (" user_id" ), " test_gate" )
28
28
assert (infoMessage.size == 1 )
You can’t perform that action at this time.
0 commit comments