Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
gitferry committed Dec 11, 2024
1 parent 6575e39 commit d31a785
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion itest/test_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ func (tm *TestManager) AddFinalityProvider(t *testing.T) *service.FinalityProvid
err = fpApp.StartFinalityProvider(eotsPk, passphrase)
require.NoError(t, err)

cfg.RPCListener = fmt.Sprintf("127.0.0.1:%d", testutil.AllocateUniquePort(t))
cfg.Metrics.Port = testutil.AllocateUniquePort(t)

fpServer := service.NewFinalityProviderServer(cfg, tm.logger, fpApp, fpdb, tm.interceptor)
go func() {
err = fpServer.RunUntilShutdown()
Expand Down Expand Up @@ -260,7 +263,7 @@ func (tm *TestManager) Stop(t *testing.T) {
require.NoError(t, err)
err = os.RemoveAll(tm.baseDir)
require.NoError(t, err)
// tm.EOTSServerHandler.Stop()
tm.interceptor.RequestShutdown()
}

func (tm *TestManager) WaitForFpPubRandTimestamped(t *testing.T, fpIns *service.FinalityProviderInstance) {
Expand Down

0 comments on commit d31a785

Please sign in to comment.