Skip to content

Commit

Permalink
node: remove test which doesn't do a lot (ethereum#29159)
Browse files Browse the repository at this point in the history
* node: fix test if directory already exists

* node: remove test
  • Loading branch information
MariusVanDerWijden authored Mar 5, 2024
1 parent 9e129ef commit 9a0fa80
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions node/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9a0fa80

Please sign in to comment.