1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-26 03:52:12 +02:00

chore: replace the DisableDebugLog method, which is marked as Deprecated, with the PrintDebugLog method in the discovery test (#3364)

Co-authored-by: huangzw <huangzw@2345.com>
This commit is contained in:
Name 2024-08-19 10:56:34 +08:00 committed by GitHub
parent 2f94905f28
commit 57b961cba0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -81,7 +81,7 @@ func (m *mockConn) ParseServiceConfig(_ string) *serviceconfig.ParseResult {
}
func TestBuilder_Build(t *testing.T) {
b := NewBuilder(&mockDiscovery{}, DisableDebugLog())
b := NewBuilder(&mockDiscovery{}, PrintDebugLog(false))
_, err := b.Build(
resolver.Target{
URL: url.URL{