Пример #1
0
 public void TestNegativeTimeout()
 {
     Assert.Throws <ArgumentException>(() =>
     {
         var options = new TransactionOptions();
         options.SetTimeout(-1, TimeUnit.Milliseconds);
     });
 }
        public void TestTxnTimeOut()
        {
            var options = new TransactionOptions();

            options.SetTimeout(100, TimeUnit.Milliseconds);
            var context = Client.NewTransactionContext(options);

            Thread.Sleep(500);
            context.CommitTransaction();
        }
Пример #3
0
 public void TestTxnTimeOut()
 {
     Assert.Throws <TransactionNotActiveException>(() =>
     {
         var options = new TransactionOptions();
         options.SetTimeout(100, TimeUnit.Milliseconds);
         var context = Client.NewTransactionContext(options);
         Thread.Sleep(500);
         context.CommitTransaction();
     });
 }
        public void TestNegativeTimeout()
        {
            var options = new TransactionOptions();

            options.SetTimeout(-1, TimeUnit.Milliseconds);
        }