TestCase AcctUpsertTest and DgraphAsyncClientTest Failed

Posted by darionyaphet:

io.dgraph.AcctUpsertTest.beforeClass FAILED
    java.lang.AssertionError

io.dgraph.DgraphAsyncClientTest.beforeClass FAILED
    java.util.concurrent.CompletionException
        Caused by: io.grpc.StatusRuntimeException
            Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException
                Caused by: java.net.ConnectException

mangalaman93 commented :

Seems like that tests are unable to connect to Alpha. Could you let us know how you are running the tests?

darionyaphet commented :

./gradlew test thanks

mangalaman93 commented :

Yeah, that makes sense. Please follow the steps below instead, the tests need a running live dgraph cluster -

  1. Create a dgraph cluster using a compose file here https://github.com/dgraph-io/dgraph/blob/master/dgraph/docker-compose.yml
  2. install dgraph binary in your PATH
  3. run ./gradlew test

Ideally, we should create a script that does this for us. I will keep the issue open until that happens. Thanks for raising this issue.