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.

30 lines
890 B

lint: Enable Golint (#4212) * Fix many golint errors * Fix golint errors in the 'lite' package * Don't export Pool.store * Fix typo * Revert unwanted changes * Fix errors in counter package * Fix linter errors in kvstore package * Fix linter error in example package * Fix error in tests package * Fix linter errors in v2 package * Fix linter errors in consensus package * Fix linter errors in evidence package * Fix linter error in fail package * Fix linter errors in query package * Fix linter errors in core package * Fix linter errors in node package * Fix linter errors in mempool package * Fix linter error in conn package * Fix linter errors in pex package * Rename PEXReactor export to Reactor * Fix linter errors in trust package * Fix linter errors in upnp package * Fix linter errors in p2p package * Fix linter errors in proxy package * Fix linter errors in mock_test package * Fix linter error in client_test package * Fix linter errors in coretypes package * Fix linter errors in coregrpc package * Fix linter errors in rpcserver package * Fix linter errors in rpctypes package * Fix linter errors in rpctest package * Fix linter error in json2wal script * Fix linter error in wal2json script * Fix linter errors in kv package * Fix linter error in state package * Fix linter error in grpc_client * Fix linter errors in types package * Fix linter error in version package * Fix remaining errors * Address review comments * Fix broken tests * Reconcile package coregrpc * Fix golangci bot error * Fix new golint errors * Fix broken reference * Enable golint linter * minor changes to bring golint into line * fix failing test * fix pex reactor naming * address PR comments
5 years ago
  1. package tests
  2. import (
  3. "testing"
  4. "github.com/stretchr/testify/assert"
  5. abciclientent "github.com/tendermint/tendermint/abci/client"
  6. "github.com/tendermint/tendermint/abci/example/kvstore"
  7. abciserver "github.com/tendermint/tendermint/abci/server"
  8. "github.com/tendermint/tendermint/libs/log"
  9. )
  10. func TestClientServerNoAddrPrefix(t *testing.T) {
  11. addr := "localhost:26658"
  12. transport := "socket"
  13. app := kvstore.NewApplication()
  14. logger := log.TestingLogger()
  15. server, err := abciserver.NewServer(logger, addr, transport, app)
  16. assert.NoError(t, err, "expected no error on NewServer")
  17. err = server.Start()
  18. assert.NoError(t, err, "expected no error on server.Start")
  19. client, err := abciclientent.NewClient(logger, addr, transport, true)
  20. assert.NoError(t, err, "expected no error on NewClient")
  21. err = client.Start()
  22. assert.NoError(t, err, "expected no error on client.Start")
  23. }