Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testSDKInfoFileIsWrittenWithInstrumentationKey fails on Fedora Linux 22 #278

Closed
olivierdagenais opened this issue Feb 12, 2016 · 3 comments

Comments

@olivierdagenais
Copy link

I ran gradlew test on my Fedora 22 VM and one of the tests in core failed:

Class: com.microsoft.applicationinsights.extensibility.initializer.docker.DockerContextInitializerTests
Method: testSDKInfoFileIsWrittenWithInstrumentationKey

Argument(s) are different! Wanted:
fileFactory.create(
    "/usr/appinsights/docker/sdk.info",
    "InstrumentationKey=A-test-instrumentation-key"
);
-> at com.microsoft.applicationinsights.extensibility.initializer.docker.DockerContextInitializerTests.testSDKInfoFileIsWrittenWithInstrumentationKey(DockerContextInitializerTests.java:133)
Actual invocation has different arguments:
fileFactory.create(
    "/usr/appinsights/docker/sdk.info",
    "InstrumentationKey=c9341531-05ac-4d8c-972e-36e97601d5ff"
);

A quick spelunking in the code suggests that the test might be sensitive to ordering since it [indirectly] accesses the TelemetryConfiguration singleton and its configuration wasn't loaded from the ApplicationInsights.xml test resource.

@olivierdagenais olivierdagenais changed the title testSDKInfoFileIsWrittenWithInstrumentationKey test fails on Fedora Linux 22 testSDKInfoFileIsWrittenWithInstrumentationKey fails on Fedora Linux 22 Feb 13, 2016
@Yonisha
Copy link
Contributor

Yonisha commented Feb 17, 2016

Hi Olivier,

Thanks for your feedback and suggestion.
We'll address this issue shortly.

@beckylino
Copy link

@olivierdagenais are you still experiencing any issues with this test?

@olivierdagenais
Copy link
Author

@beckylino I haven't used this project in over a year. I had encountered this test failure when I was testing a fix for another issue and figured the maintainers might be interested to know some of the tests were unreliable. I don't currently have a Fedora Linux VM to test with, sorry.

@ghost ghost locked as resolved and limited conversation to collaborators Jul 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants