Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
c0mm4nd committed Mar 5, 2024
1 parent 4dd95fa commit 706a53b
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions jsonrpc/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,11 @@ func TestNewRPCServer(t *testing.T) {

rpc := jsonrpc.NewServer(pow, jsonrpc.ServerConfig{
Host: "",
Port: 52520,
Port: 52521,
DisableP2PMethods: false,
DisableMiningMethods: false,
})
go rpc.Serve()

go func() {
finished := time.After(2 * time.Minute)

for {
<-finished

return
}
}()
time.Sleep(2 * time.Minute)
}

0 comments on commit 706a53b

Please sign in to comment.