From bf093348b721bf0b0c02e1fbb8dc8f6e9afd8ac8 Mon Sep 17 00:00:00 2001 From: JukLee0ira Date: Tue, 1 Jul 2025 17:48:18 +0800 Subject: [PATCH] node: fix test if directory already exists #29159 (#1176) --- node/node_test.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/node/node_test.go b/node/node_test.go index 48ca27ee1b..e46a5ccf2d 100644 --- a/node/node_test.go +++ b/node/node_test.go @@ -394,21 +394,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)