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

Commit

Permalink
Merge pull request #175 from 0xProject/marcin/obsolete
Browse files Browse the repository at this point in the history
Clean up obsolete code
  • Loading branch information
eitu5ami authored Feb 20, 2024
2 parents 3249f8d + 4185981 commit a75630b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 33 deletions.
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.

0 comments on commit a75630b

Please sign in to comment.