mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-20 14:16:22 +00:00
simplify config handling
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
dbm "github.com/tendermint/tm-db"
|
||||
|
||||
"github.com/tendermint/tendermint/abci/example/kvstore"
|
||||
"github.com/tendermint/tendermint/internal/test/factory"
|
||||
"github.com/tendermint/tendermint/libs/log"
|
||||
"github.com/tendermint/tendermint/light"
|
||||
httpp "github.com/tendermint/tendermint/light/provider/http"
|
||||
@@ -39,7 +40,7 @@ func TestExampleClient(t *testing.T) {
|
||||
defer func() { _ = closer(ctx) }()
|
||||
|
||||
dbDir := t.TempDir()
|
||||
chainID := conf.ChainID()
|
||||
chainID := factory.DefaultTestChainID
|
||||
|
||||
primary, err := httpp.New(chainID, conf.RPC.ListenAddress)
|
||||
if err != nil {
|
||||
|
||||
+4
-3
@@ -9,6 +9,7 @@ import (
|
||||
dbm "github.com/tendermint/tm-db"
|
||||
|
||||
"github.com/tendermint/tendermint/abci/example/kvstore"
|
||||
"github.com/tendermint/tendermint/internal/test/factory"
|
||||
"github.com/tendermint/tendermint/libs/log"
|
||||
"github.com/tendermint/tendermint/light"
|
||||
"github.com/tendermint/tendermint/light/provider"
|
||||
@@ -42,7 +43,7 @@ func TestClientIntegration_Update(t *testing.T) {
|
||||
time.Sleep(5 * time.Second)
|
||||
|
||||
dbDir := t.TempDir()
|
||||
chainID := conf.ChainID()
|
||||
chainID := factory.DefaultTestChainID
|
||||
|
||||
primary, err := httpp.New(chainID, conf.RPC.ListenAddress)
|
||||
require.NoError(t, err)
|
||||
@@ -100,7 +101,7 @@ func TestClientIntegration_VerifyLightBlockAtHeight(t *testing.T) {
|
||||
defer func() { require.NoError(t, closer(ctx)) }()
|
||||
|
||||
dbDir := t.TempDir()
|
||||
chainID := conf.ChainID()
|
||||
chainID := factory.DefaultTestChainID
|
||||
|
||||
primary, err := httpp.New(chainID, conf.RPC.ListenAddress)
|
||||
require.NoError(t, err)
|
||||
@@ -175,7 +176,7 @@ func TestClientStatusRPC(t *testing.T) {
|
||||
defer func() { require.NoError(t, closer(ctx)) }()
|
||||
|
||||
dbDir := t.TempDir()
|
||||
chainID := conf.ChainID()
|
||||
chainID := factory.DefaultTestChainID
|
||||
|
||||
primary, err := httpp.New(chainID, conf.RPC.ListenAddress)
|
||||
require.NoError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user