locked
async unit testing RRS feed

  • Question

  • User21521 posted

    Hi, is async unit testing in the UnitTestApp possible? I seem to be having big problems. For example

        [Test]
        public async Task Pass ()
        {
            await Task.Delay (1000);
            Assert.True (true);
        }
    

    will trash the TouchRunner and it will be frozen.

    Saturday, November 14, 2015 7:04 AM

All replies

  • User21521 posted

    found that i had to set [Timeout(Int32.MaxValue)]

    Saturday, November 14, 2015 7:58 AM
  • User76518 posted

    This was driving me nuts!!! but setting the timeout fixed it.

    Cheers!

    Tuesday, March 22, 2016 10:08 PM