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

Attach Agent ID to remote-write requests #5999

Merged
merged 18 commits into from
Jan 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
maybe fix tests
captncraig committed Dec 19, 2023
commit ed4c24ce804c498d38bdd5b3119823b1014c4e47
9 changes: 4 additions & 5 deletions internal/agentseed/agentseed_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package agentseed

import (
"os"
"path/filepath"
"sync"
"testing"
@@ -9,11 +10,8 @@ import (
"github.com/stretchr/testify/require"
)

func setupFile(dir string) {

}

func reset() {
os.Remove(legacyPath())
savedSeed = nil
once = sync.Once{}
}
@@ -22,8 +20,9 @@ func TestNoExistingFile(t *testing.T) {
t.Cleanup(reset)
dir := t.TempDir()
l := log.NewNopLogger()
Init(dir, l)
f := filepath.Join(dir, filename)
require.NoFileExists(t, f)
Init(dir, l)
require.FileExists(t, f)
loaded, err := readSeedFile(f, l)
require.NoError(t, err)