You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
764 B

  1. package main
  2. import (
  3. "testing"
  4. "github.com/stretchr/testify/assert"
  5. abciclient "github.com/tendermint/abci/client"
  6. "github.com/tendermint/abci/example/dummy"
  7. abciserver "github.com/tendermint/abci/server"
  8. )
  9. func TestClientServerNoAddrPrefix(t *testing.T) {
  10. addr := "localhost:46658"
  11. transport := "socket"
  12. app := dummy.NewDummyApplication()
  13. server, err := abciserver.NewServer(addr, transport, app)
  14. assert.NoError(t, err, "expected no error on NewServer")
  15. _, err = server.Start()
  16. assert.NoError(t, err, "expected no error on server.Start")
  17. client, err := abciclient.NewClient(addr, transport, true)
  18. assert.NoError(t, err, "expected no error on NewClient")
  19. _, err = client.Start()
  20. assert.NoError(t, err, "expected no error on client.Start")
  21. }