github.com/pokt-network/tendermint@v0.32.11-0.20230426215212-59310158d3e9/abci/tests/client_server_test.go (about) 1 package tests 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/assert" 7 8 abciclient "github.com/tendermint/tendermint/abci/client" 9 "github.com/tendermint/tendermint/abci/example/kvstore" 10 abciserver "github.com/tendermint/tendermint/abci/server" 11 ) 12 13 func TestClientServerNoAddrPrefix(t *testing.T) { 14 addr := "localhost:26658" 15 transport := "socket" 16 app := kvstore.NewApplication() 17 18 server, err := abciserver.NewServer(addr, transport, app) 19 assert.NoError(t, err, "expected no error on NewServer") 20 err = server.Start() 21 assert.NoError(t, err, "expected no error on server.Start") 22 23 client, err := abciclient.NewClient(addr, transport, true) 24 assert.NoError(t, err, "expected no error on NewClient") 25 err = client.Start() 26 assert.NoError(t, err, "expected no error on client.Start") 27 }