Skip to content

Commit

Permalink
Update test cases on bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
erdemyerebasmaz committed Mar 28, 2024
1 parent a16f6d0 commit fd610d3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion libs/sdk-bindings/bindings-csharp/test/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
try
{
var seed = BreezSdkMethods.MnemonicToSeed("cruise clever syrup coil cute execute laundry general cover prevent law sheriff");
BreezSdkMethods.SetLogStream(new LogStreamListener());
BreezSdkMethods.SetLogStream(new LogStreamListener(), null);
var config = BreezSdkMethods.DefaultConfig(EnvironmentType.STAGING, "code", new NodeConfig.Greenlight(new GreenlightNodeConfig(null, "")));
BlockingBreezServices sdkServices = BreezSdkMethods.Connect(config, seed, new SDKListener());
NodeState? nodeInfo = sdkServices.NodeInfo();
Expand Down
2 changes: 1 addition & 1 deletion libs/sdk-bindings/tests/bindings/csharp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
try
{
var seed = BreezSdkMethods.MnemonicToSeed("cruise clever syrup coil cute execute laundry general cover prevent law sheriff");
BreezSdkMethods.SetLogStream(new LogStreamListener());
BreezSdkMethods.SetLogStream(new LogStreamListener(), null);
var config = BreezSdkMethods.DefaultConfig(EnvironmentType.STAGING, "code", new NodeConfig.Greenlight(new GreenlightNodeConfig(null, "")));
var connectRequest = new ConnectRequest(config, seed);
BlockingBreezServices sdkServices = BreezSdkMethods.Connect(connectRequest, new SDKListener());
Expand Down
2 changes: 1 addition & 1 deletion libs/sdk-bindings/tests/bindings/golang/test_breez_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (BreezListener) OnEvent(e breez_sdk.BreezEvent) {
func main() {
breezListener := BreezListener{}

breez_sdk.SetLogStream(breezListener)
breez_sdk.SetLogStream(breezListener, breez_sdk.LevelFilterTrace)

seed, err := breez_sdk.MnemonicToSeed("cruise clever syrup coil cute execute laundry general cover prevent law sheriff")

Expand Down
2 changes: 1 addition & 1 deletion libs/sdk-bindings/tests/bindings/test_breez_sdk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
try
{
var seed = BreezSdkMethods.MnemonicToSeed("cruise clever syrup coil cute execute laundry general cover prevent law sheriff");
BreezSdkMethods.SetLogStream(new LogStreamListener());
BreezSdkMethods.SetLogStream(new LogStreamListener(), null);
var config = BreezSdkMethods.DefaultConfig(EnvironmentType.STAGING, "code", new NodeConfig.Greenlight(new GreenlightNodeConfig(null, "")));
var connectRequest = new ConnectRequest(config, seed);
BlockingBreezServices sdkServices = BreezSdkMethods.Connect(connectRequest, new SDKListener());
Expand Down
2 changes: 1 addition & 1 deletion libs/sdk-bindings/tests/bindings/test_breez_sdk.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class LogStreamListener: breez_sdk.LogStream {
}

try {
breez_sdk.setLogStream(LogStreamListener());
breez_sdk.setLogStream(LogStreamListener(), null);
var seed = breez_sdk.mnemonicToSeed("cruise clever syrup coil cute execute laundry general cover prevent law sheriff");
var config = breez_sdk.defaultConfig(breez_sdk.EnvironmentType.STAGING, "code", breez_sdk.NodeConfig.Greenlight(breez_sdk.GreenlightNodeConfig(null, "")))
var connectRequest = breez_sdk.ConnectRequest(config, seed)
Expand Down
2 changes: 1 addition & 1 deletion libs/sdk-bindings/tests/bindings/test_breez_sdk.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class LogStreamListener: LogStream {
}

do {
try setLogStream(logStream: LogStreamListener());
try setLogStream(logStream: LogStreamListener(), filterLevel: nil);
let seed = try mnemonicToSeed(phrase: "cruise clever syrup coil cute execute laundry general cover prevent law sheriff");
let config = breez_sdk.defaultConfig(envType: EnvironmentType.staging, apiKey: "", nodeConfig: NodeConfig.greenlight(config: GreenlightNodeConfig(partnerCredentials: nil,inviteCode: "code")));
let connectRequest = ConnectRequest(config: config, seed: seed)
Expand Down

0 comments on commit fd610d3

Please sign in to comment.