From cda3ef0b440bade89f07275477fb0502a1e9a432 Mon Sep 17 00:00:00 2001 From: yse Date: Sat, 4 Jan 2025 03:39:44 +0100 Subject: [PATCH] fix: bindings tests --- lib/bindings/tests/bindings/csharp/Program.cs | 1 + lib/bindings/tests/bindings/golang/test_breez_sdk_liquid.go | 1 + lib/bindings/tests/bindings/test_breez_liquid_sdk.cs | 1 + lib/bindings/tests/bindings/test_breez_sdk_liquid.kts | 1 + lib/bindings/tests/bindings/test_breez_sdk_liquid.py | 1 + lib/bindings/tests/bindings/test_breez_sdk_liquid.swift | 3 ++- 6 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/bindings/tests/bindings/csharp/Program.cs b/lib/bindings/tests/bindings/csharp/Program.cs index 6662d9147..a44e8d459 100644 --- a/lib/bindings/tests/bindings/csharp/Program.cs +++ b/lib/bindings/tests/bindings/csharp/Program.cs @@ -5,6 +5,7 @@ { var mnemonic = "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about"; var config = BreezSdkLiquidMethods.DefaultConfig(LiquidNetwork.Testnet, null); + config.syncServiceUrl = null; var connectReq = new ConnectRequest(config, mnemonic); BindingLiquidSdk sdk = BreezSdkLiquidMethods.Connect(connectReq); diff --git a/lib/bindings/tests/bindings/golang/test_breez_sdk_liquid.go b/lib/bindings/tests/bindings/golang/test_breez_sdk_liquid.go index 0e066daae..1c539bbfd 100644 --- a/lib/bindings/tests/bindings/golang/test_breez_sdk_liquid.go +++ b/lib/bindings/tests/bindings/golang/test_breez_sdk_liquid.go @@ -9,6 +9,7 @@ import ( func main() { mnemonic := "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about" config, err := breez_sdk_liquid.DefaultConfig(breez_sdk_liquid.LiquidNetworkTestnet, nil) + config.SyncServiceUrl = nil if err != nil { log.Fatalf("Config creation failed: %#v", err) diff --git a/lib/bindings/tests/bindings/test_breez_liquid_sdk.cs b/lib/bindings/tests/bindings/test_breez_liquid_sdk.cs index 0e45caaec..d1013a4db 100644 --- a/lib/bindings/tests/bindings/test_breez_liquid_sdk.cs +++ b/lib/bindings/tests/bindings/test_breez_liquid_sdk.cs @@ -5,6 +5,7 @@ { var mnemonic = "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about"; var config = BreezSdkLiquidMethods.DefaultConfig(LiquidNetwork.Testnet, null); + config.syncServiceUrl = null; var connectReq = new ConnectRequest(config, mnemonic); BindingLiquidSdk sdk = BreezSdkLiquidMethods.Connect(connectReq); diff --git a/lib/bindings/tests/bindings/test_breez_sdk_liquid.kts b/lib/bindings/tests/bindings/test_breez_sdk_liquid.kts index 807202faa..dca5cb746 100644 --- a/lib/bindings/tests/bindings/test_breez_sdk_liquid.kts +++ b/lib/bindings/tests/bindings/test_breez_sdk_liquid.kts @@ -8,6 +8,7 @@ class SDKListener: breez_sdk_liquid.EventListener { try { var mnemonic = "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about" var config = breez_sdk_liquid.defaultConfig(breez_sdk_liquid.LiquidNetwork.TESTNET, null) + config.syncServiceUrl = null var connectRequest = breez_sdk_liquid.ConnectRequest(config, mnemonic) var sdk = breez_sdk_liquid.connect(connectRequest) diff --git a/lib/bindings/tests/bindings/test_breez_sdk_liquid.py b/lib/bindings/tests/bindings/test_breez_sdk_liquid.py index 83a0decc4..73faa7a0e 100644 --- a/lib/bindings/tests/bindings/test_breez_sdk_liquid.py +++ b/lib/bindings/tests/bindings/test_breez_sdk_liquid.py @@ -9,6 +9,7 @@ def on_event(self, event): def test(): mnemonic = "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about" config = breez_sdk_liquid.default_config(breez_sdk_liquid.LiquidNetwork.TESTNET, None) + config.sync_service_url = None connect_request = breez_sdk_liquid.ConnectRequest(config=config, mnemonic=mnemonic) sdk = breez_sdk_liquid.connect(connect_request) diff --git a/lib/bindings/tests/bindings/test_breez_sdk_liquid.swift b/lib/bindings/tests/bindings/test_breez_sdk_liquid.swift index b5faa7fb6..fedceaabe 100644 --- a/lib/bindings/tests/bindings/test_breez_sdk_liquid.swift +++ b/lib/bindings/tests/bindings/test_breez_sdk_liquid.swift @@ -7,7 +7,8 @@ class SDKListener: EventListener { } let mnemonic = "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about"; -let config = try breez_sdk_liquid.defaultConfig(network: .testnet, breezApiKey: nil); +var config = try breez_sdk_liquid.defaultConfig(network: .testnet, breezApiKey: nil); +config.syncServiceUrl = nil let connectRequest = breez_sdk_liquid.ConnectRequest(config: config, mnemonic: mnemonic); let sdk = try breez_sdk_liquid.connect(req: connectRequest);