From d31a7855c051b2963b965ba448ca2a2dab92fe05 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/itest/test_manager.go b/itest/test_manager.go index 309a8038..a2740a00 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() @@ -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) {