[System] Make ServicePointTest.DnsRefreshTimeout test more reliable
commit5b16d227742bb451ce9c7019bb7b87512c424aa7
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 9 Sep 2015 01:30:11 +0000 (9 03:30 +0200)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 9 Sep 2015 01:30:11 +0000 (9 03:30 +0200)
treef8899d47c8e6bf80850343d0b068bcee6c179c8c
parentcf5f99d83aa67f2a8e05d65d0be6949aaf904e89
[System] Make ServicePointTest.DnsRefreshTimeout test more reliable

The previous 2ms timeout was way too short and the test failed frequently.

Also switch to Assert.AreSame/AreNotSame instead of AreEqual/AreNotEqual since
we want to ensure the same object is returned and not just an equal one.
mcs/class/System/Test/System.Net/ServicePointTest.cs