I am using rethinkdb and I am trying to delete all records in a table. The query works without problems when using the Run
on the query , thus synchronously. When using the RunAsync
the program exits with status code -1
.
The program does not throw any exception so how am I supposed to find out why it exists?
public class ChangeFeedTests
{
[TestCase()]
public async Task ChangeFeedTest()
{
RethinkDB r = RethinkDB.R;
Connection.Builder builder = r.Connection();
builder.Port(Constants.PORT).Hostname(Constants.HOST_NAME);
Connection con = await builder.ConnectAsync(); /
try
{
var c = await ret.Db(Constants.DB_NAME)
.Table(Constants.TABLE_NAME)
.Delete().RunAsync(conn); //->exits
//------------------.Run(conn) -> works fine
}
catch (Exception ex)
{
throw;
}
Assert.IsTrue(true);
}
}