Skip to content

Commit c8af494

Browse files
committed
don't merge global custom config in test
1 parent 52a5825 commit c8af494

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/io/nekohasekai/sagernet/fmt/ConfigBuilder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ fun buildConfig(
738738
}
739739
}
740740

741-
_hack_custom_config = DataStore.globalCustomConfig
741+
if (!forTest) _hack_custom_config = DataStore.globalCustomConfig
742742
}.let {
743743
val configMap = it.asMap()
744744
Util.mergeJSON(configMap, proxy.requireBean().customConfigJson)

0 commit comments

Comments
 (0)