node: remove test which doesn't do a lot (#29159)

* node: fix test if directory already exists

* node: remove test
pull/29038/head
Marius van der Wijden 8 months ago committed by GitHub
parent 9e129efd7b
commit 9a0fa8093c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 15
      node/node_test.go

@ -415,21 +415,6 @@ func TestRegisterHandler_Successful(t *testing.T) {
assert.Equal(t, "success", string(buf))
}
// Tests that the given handler will not be successfully mounted since no HTTP server
// is enabled for RPC
func TestRegisterHandler_Unsuccessful(t *testing.T) {
node, err := New(&DefaultConfig)
if err != nil {
t.Fatalf("could not create new node: %v", err)
}
// create and mount handler
handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("success"))
})
node.RegisterHandler("test", "/test", handler)
}
// Tests whether websocket requests can be handled on the same port as a regular http server.
func TestWebsocketHTTPOnSamePort_WebsocketRequest(t *testing.T) {
node := startHTTP(t, 0, 0)

Loading…
Cancel
Save