Skip to content

Commit 58cd1e5

Browse files
MariusVanDerWijdenjorgemmsilva
authored andcommitted
node: remove test which doesn't do a lot (ethereum#29159)
* node: fix test if directory already exists * node: remove test
1 parent 2129afb commit 58cd1e5

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

node/node_test.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -415,21 +415,6 @@ func TestRegisterHandler_Successful(t *testing.T) {
415415
assert.Equal(t, "success", string(buf))
416416
}
417417

418-
// Tests that the given handler will not be successfully mounted since no HTTP server
419-
// is enabled for RPC
420-
func TestRegisterHandler_Unsuccessful(t *testing.T) {
421-
node, err := New(&DefaultConfig)
422-
if err != nil {
423-
t.Fatalf("could not create new node: %v", err)
424-
}
425-
426-
// create and mount handler
427-
handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
428-
w.Write([]byte("success"))
429-
})
430-
node.RegisterHandler("test", "/test", handler)
431-
}
432-
433418
// Tests whether websocket requests can be handled on the same port as a regular http server.
434419
func TestWebsocketHTTPOnSamePort_WebsocketRequest(t *testing.T) {
435420
node := startHTTP(t, 0, 0)

0 commit comments

Comments
 (0)