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

add tests for attrs at end of bg trace #269

Merged
merged 4 commits into from
Sep 20, 2023

Conversation

dtbell91
Copy link
Contributor

Adds a couple of tests as per #255 (comment)

  • adding attributes only at the end
  • appending attributes to a span which already has attributes
  • modifying an existing attribute and appending new attributes

Let me know if there is another case which should be covered or if these should be more thorough.

@tobert
Copy link
Collaborator

tobert commented Sep 20, 2023

Looks good. It's failing on my machine, I'll figure that out then merge.

@tobert
Copy link
Collaborator

tobert commented Sep 20, 2023

Oh neat, it exposes another bug where using the same sockdir in 2 invocations, the second one fails. I suspect I need to cleanup the socket better.

After some tests were added, they failed on my machine. Looking into it,
it turned out that the sockfile from previous span background operations
lingered and caused subsequent tests to fail. I'm not sure why it didn't
fail in CI but it doesn't hurt to unlink the file just to be sure.

I skipped error checking on it for now, so that it doesn't have to be
careful about whether the file exists or not.
@tobert tobert merged commit 7dd4c38 into equinix-labs:main Sep 20, 2023
1 check passed
@dtbell91
Copy link
Contributor Author

dtbell91 commented Sep 20, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants