erigon-pulse/cmd/devnettest/requests/mock_requests.go
leonardchinonso aca755ab43
Fix/rpcdaemon ws upgrade (#3490)
* Added a method to `cmd/rpcdaemon/cli/config.go` to check header of incoming http request for a ws upgrade request

* Added the testing of the 'GET /' request for ws to the devnet tool

* Fixed lint errors
2022-02-12 12:40:19 +01:00

17 lines
226 B
Go

package requests
import "fmt"
func MockGetRequest(reqId int) {
reqGen := initialiseRequestGenerator(reqId)
res := reqGen.Get()
if res.Err != nil {
fmt.Printf("error: %v\n", res.Err)
return
}
fmt.Printf("OK\n")
}