Fix X509ChainElementCollection_CopyTo_NonZeroLowerBound_ThrowsIndexOutOfRangeExceptio...
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Wed, 1 Sep 2021 15:45:42 +0000 (17:45 +0200)
committerGitHub <noreply@github.com>
Wed, 1 Sep 2021 15:45:42 +0000 (17:45 +0200)
commitdb3f308b7b3d42c6fce5a7cc730bfac6363f813d
treebe8b4940a5d85fc1f68572fe32b9a7c2b1659048
parentfd2594fd8c9e27f15e8ed75a50c936d3fc54461a
Fix X509ChainElementCollection_CopyTo_NonZeroLowerBound_ThrowsIndexOutOfRangeException test on Android (#58489)

It started to fail because the validity of the MicrosoftDotComSslCertBytes expired on 2021-08-29 22:17:02.
Since this test doesn't need to validate a specific expiration time we can just set the VerificationTime on the chain like we do in other tests.

Fixes https://github.com/dotnet/runtime/issues/58416

Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
src/libraries/System.Security.Cryptography.X509Certificates/tests/CollectionTests.cs