From 9a0bbf0a826a77b93b58926212b7b89c692ed7a0 Mon Sep 17 00:00:00 2001 From: Fangyu Gai Date: Wed, 11 Dec 2024 21:32:06 +0800 Subject: [PATCH] fix e2e --- itest/test_manager.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/itest/test_manager.go b/itest/test_manager.go index 309a803..d443c98 100644 --- a/itest/test_manager.go +++ b/itest/test_manager.go @@ -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()