Skip to content

Commit

Permalink
Add full unit test for test peers command
Browse files Browse the repository at this point in the history
  • Loading branch information
KaloyanTanev committed May 10, 2024
1 parent 3e41eba commit 746c3b6
Show file tree
Hide file tree
Showing 2 changed files with 184 additions and 46 deletions.
5 changes: 0 additions & 5 deletions cmd/testpeers.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,6 @@ func sleepWithContext(ctx context.Context, d time.Duration) {
}

func runTestPeers(ctx context.Context, w io.Writer, conf testPeersConfig) error {
err := log.InitLogger(conf.Log)
if err != nil {
return err
}

peerTestCases := supportedPeerTestCases()
queuedTestsPeer := filterTests(maps.Keys(peerTestCases), conf.testConfig)
sortTests(queuedTestsPeer)
Expand Down
Loading

0 comments on commit 746c3b6

Please sign in to comment.