Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ranlavanet committed Jun 2, 2024
1 parent ce09ea6 commit fa8782a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions protocol/chainlib/chainproxy/connector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ func TestHashing(t *testing.T) {

func TestMain(m *testing.M) {
listener := createRPCServer()
defer listener.Close()
for {
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
_, err := rpcclient.DialContext(ctx, listenerAddressTcp)
Expand All @@ -192,6 +191,6 @@ func TestMain(m *testing.M) {

// Start running tests.
code := m.Run()

listener.Close()
os.Exit(code)
}

0 comments on commit fa8782a

Please sign in to comment.