xunit tests failing to connect to Azure

kirk.marple's Avatar

kirk.marple

06 Nov, 2015 06:08 AM

I have some unit tests, using xunit.dnx runner, which do some work on DocumentDb on Azure.

I see the test assembly is found, when running as part of my Appveyor build, and I can see on our logs (sent to Logentries) that it gets to the point of doing a query on DocumentDb and then hangs.

It's using HTTPS to talk to DocumentDb by default, and I'm wondering if there's some limitation of the build server image to talk to external services like this?

Thanks,
Kirk

  1. Support Staff 1 Posted by Feodor Fitsner on 06 Nov, 2015 06:14 AM

    Feodor Fitsner's Avatar

    There are no limitations. AppVeyor cloud service, build cache are in Azure and build workers can connect to them. Also, many customers run tests against Azure SQL Databases.

    Are there any firewall settings on DocumentDB, like Azure SQL firewall?

  2. 2 Posted by kirk.marple on 06 Nov, 2015 06:34 AM

    kirk.marple's Avatar

    Good to know, thanks. It may be how these tests are running. I had to workaround an issue with xunit fixtures getting initialized on multiple threads (when running in VS).

    I'll test this further locally via command line to 'dnx test'.

    Just wanted to doublecheck it wasn't anything build-server related.

    Thanks,
    Kirk

  3. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:01 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac