Skip to content

Conversation

@suhailpatel
Copy link

When doing a Clone operation and overwriting a tag, the tag is not correctly overwritten.

This is because we are doing a range over the client tags and overwriting a copy of the Tag struct when you do range rather than the original value


func TestCloneInfluxDBTags(t *testing.T) {
testOutput(t, "test_key,tag1=value1,tag2=value2:5|c", func(c *Client) {
testOutput(t, "test_key,tag1=value3,tag2=value2:5|c", func(c *Client) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The value3 should overwrite value1 in the Clone

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.

1 participant