Skip to content

Commit

Permalink
chore: unexported testServerSetup
Browse files Browse the repository at this point in the history
To avoid having to support another test function, let's make it
unexported for now. Currently, we only use it in one place; maybe
we can harmonize it with some other helper.
  • Loading branch information
meling committed Mar 26, 2024
1 parent ebe8380 commit 7c573fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion channel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func TestChannelReconnection(t *testing.T) {
}
srvAddr := "127.0.0.1:5000"
// wait to start the server
startServer, stopServer := TestServerSetup(t, srvAddr, dummySrv())
startServer, stopServer := testServerSetup(t, srvAddr, dummySrv())
node, err := NewRawNode(srvAddr)
if err != nil {
t.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion testing_gorums.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestSetup(t testing.TB, numServers int, srvFn func(i int) ServerIface) ([]s
return addrs, stopFn
}

func TestServerSetup(t testing.TB, addr string, srv ServerIface) (func(), func()) {
func testServerSetup(t testing.TB, addr string, srv ServerIface) (func(), func()) {
t.Helper()
var lis net.Listener
var err error
Expand Down

0 comments on commit 7c573fe

Please sign in to comment.