-
Notifications
You must be signed in to change notification settings - Fork 38
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
Dynamic mock client (2) #21
Conversation
prometheus.NewPedanticRegistry().MustRegister(collector) | ||
ctx, cancel := context.WithCancel(context.Background()) | ||
go collector.WatchSlots(ctx) | ||
time.Sleep(1 * time.Second) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A waitgroup (from the sync package) is probably too much for tests, but is this necessary? Generally speaking, I see most code like this as code smell.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is to let the exporter run for a bit before we test it, to make sure it has gathered metrics before we go look what those metrics are and test them.
@@ -1,10 +1,21 @@ | |||
module github.com/certusone/solana_exporter | |||
|
|||
go 1.13 | |||
go 1.22 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just pull this in from your rebase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Go Update PR was to merge that branch into this branch
da8c6f3
to
aad48f6
Compare
89ebf69
to
214b737
Compare
No description provided.