-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpc/apimiddleware: Test all paths can be created (#13073)
(cherry picked from commit f592bf7)
- Loading branch information
1 parent
05874df
commit 747d7b5
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package apimiddleware_test | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/prysmaticlabs/prysm/v4/beacon-chain/rpc/apimiddleware" | ||
"github.com/prysmaticlabs/prysm/v4/testing/require" | ||
) | ||
|
||
func TestBeaconEndpointFactory_AllPathsRegistered(t *testing.T) { | ||
f := &apimiddleware.BeaconEndpointFactory{} | ||
|
||
for _, p := range f.Paths() { | ||
_, err := f.Create(p) | ||
require.NoError(t, err, "failed to register %s", p) | ||
} | ||
} |