diff options
author | Jon Purdy <evincarofautumn@gmail.com> | 2017-09-14 03:09:19 +0300 |
---|---|---|
committer | Jon Purdy <evincarofautumn@gmail.com> | 2017-09-14 08:53:38 +0300 |
commit | 47b285eac9b919cb1fc5eca4a162267f507c3890 (patch) | |
tree | 540779d36601a34b2f0807cc64fdf51ad7703131 /mcs/class/Mono.Data.Tds | |
parent | 2709ca7625d75e5b3cf8eac8a34b95395bd15c46 (diff) |
Fix bug 4786 test.
The fix in #5501 had a scoping error causing `make check` to fail.
Diffstat (limited to 'mcs/class/Mono.Data.Tds')
-rw-r--r-- | mcs/class/Mono.Data.Tds/Test/bug-4786.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mcs/class/Mono.Data.Tds/Test/bug-4786.cs b/mcs/class/Mono.Data.Tds/Test/bug-4786.cs index ed44567b40d..dbb28b32af0 100644 --- a/mcs/class/Mono.Data.Tds/Test/bug-4786.cs +++ b/mcs/class/Mono.Data.Tds/Test/bug-4786.cs @@ -45,6 +45,8 @@ namespace MonoTests.Mono.Data.Tds public void CheckNullException() { + TcpListener Listener = null; + //set up dummy sql listener, if there is a real sql server on this //machine at that port, in theory this part will fail, but that's ok //becuase something will be listening on the port and that's all we @@ -53,7 +55,7 @@ namespace MonoTests.Mono.Data.Tds try{ IPAddress hostIP =Dns.GetHostEntry("localhost").AddressList[0]; IPEndPoint ep = new IPEndPoint(hostIP, 1433); - TcpListener Listener = new TcpListener (ep); + Listener = new TcpListener (ep); Listener.Start (); } catch (Exception){ //ignore |