Skip to content

Commit

Permalink
Adjust tests to use one url to work with substarte integration tests …
Browse files Browse the repository at this point in the history
…for now
  • Loading branch information
sameh-farouk committed Nov 17, 2024
1 parent bb36e80 commit 19211f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clients/tfchain-client-go/impl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

func TestPoolInitialization(t *testing.T) {
urls := []string{"ws://127.0.0.1:9944", "ws://127.0.0.1:9945", "ws://127.0.0.1:9946"}
urls := []string{"ws://127.0.0.1:9944"}
mgr := NewManager(urls...)
defer mgr.Close()

Expand Down Expand Up @@ -59,7 +59,7 @@ func TestConnectionReuse(t *testing.T) {
}

func TestConcurrentAccess(t *testing.T) {
mgr := NewManager("ws://127.0.0.1:9944", "ws://127.0.0.1:9945")
mgr := NewManager("ws://127.0.0.1:9944")
defer mgr.Close()

ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
Expand Down Expand Up @@ -131,7 +131,7 @@ func TestStressWithFailures(t *testing.T) {
ConnectionTimeout: time.Second,
}

mgr := NewManagerWithConfig(config, "ws://127.0.0.1:9944", "ws://127.0.0.1:9945")
mgr := NewManagerWithConfig(config, "ws://127.0.0.1:9944")
defer mgr.Close()

ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
Expand Down

0 comments on commit 19211f4

Please sign in to comment.