Skip to content

Commit

Permalink
Revert "rpc: fix erroneous error-message in test (ethereum#28227)"
Browse files Browse the repository at this point in the history
This reverts commit 22de582.
  • Loading branch information
devopsbo3 committed Nov 10, 2023
1 parent e97a357 commit e29b08a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions rpc/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,17 @@ func TestServerRegisterName(t *testing.T) {
server := NewServer()
service := new(testService)

svcName := "test"
if err := server.RegisterName(svcName, service); err != nil {
if err := server.RegisterName("test", service); err != nil {
t.Fatalf("%v", err)
}

if len(server.services.services) != 2 {
t.Fatalf("Expected 2 service entries, got %d", len(server.services.services))
}

svc, ok := server.services.services[svcName]
svc, ok := server.services.services["test"]
if !ok {
t.Fatalf("Expected service %s to be registered", svcName)
t.Fatalf("Expected service calc to be registered")
}

wantCallbacks := 14
Expand Down

0 comments on commit e29b08a

Please sign in to comment.