Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Clean up obsolete code #175

Merged
merged 1 commit into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions internal/rpcgateway/rpcgateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package rpcgateway
import (
"bytes"
"context"
"fmt"
"html/template"
"io"
"net/http"
Expand Down Expand Up @@ -58,15 +57,11 @@ type TestURL struct {
func TestRpcGatewayFailover(t *testing.T) {
prometheus.DefaultRegisterer = prometheus.NewRegistry()

// RPC backends setup
onReq := func(r *http.Request) {
fmt.Println("got request")
}
rpcBackend := &responder{
value: []byte(`{"jsonrpc":"2.0","id":1,"result":"0xd8d7df"}`),
onRequest: onReq,
}
ts := httptest.NewServer(rpcBackend)
ts := httptest.NewServer(
http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte(`{"jsonrpc":"2.0","id":1,"result":"0xd8d7df"}`))
w.WriteHeader(http.StatusOK)
}))
defer ts.Close()

// Toxic Proxy setup
Expand Down
23 changes: 0 additions & 23 deletions internal/rpcgateway/test_utils.go

This file was deleted.

Loading