File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff 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.
434419func TestWebsocketHTTPOnSamePort_WebsocketRequest (t * testing.T ) {
435420 node := startHTTP (t , 0 , 0 )
You can’t perform that action at this time.
0 commit comments