Ad
  • Default User Avatar

    C#. Why does "Attempt" time out? I extended the test script to include 30 of these:

    yield return new TestCaseData(Random.Shared.Next(1, int.MaxValue)).Returns(true);

    and multiple test runs completed in, and I quote:

    Time: 4756ms Passed: 6Failed: 30Exit Code: 1

    Time: 4578ms Passed: 6Failed: 30Exit Code: 1

    Time: 6446ms Passed: 8Failed: 28Exit Code: 1

    Time: 9301ms Passed: 9Failed: 27Exit Code: 1

    Time: 8725ms Passed: 9Failed: 27Exit Code: 1

    Time: 5229ms Passed: 7Failed: 29Exit Code: 1

    yet "Attempt" constantly times out at 12s. It seems like "Attempt" runs considerablly slower than merely testing.

    I will skip this kata :(