mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(coderd): add support for sending batched agent metadata (#10223)
Part of #9782
This commit is contained in:
+2
-2
@@ -1079,7 +1079,7 @@ func TestAgent_Metadata(t *testing.T) {
|
||||
opts.ReportMetadataInterval = 100 * time.Millisecond
|
||||
})
|
||||
|
||||
var gotMd map[string]agentsdk.PostMetadataRequest
|
||||
var gotMd map[string]agentsdk.PostMetadataRequestDeprecated
|
||||
require.Eventually(t, func() bool {
|
||||
gotMd = client.GetMetadata()
|
||||
return len(gotMd) == 1
|
||||
@@ -1112,7 +1112,7 @@ func TestAgent_Metadata(t *testing.T) {
|
||||
opts.ReportMetadataInterval = testutil.IntervalFast
|
||||
})
|
||||
|
||||
var gotMd map[string]agentsdk.PostMetadataRequest
|
||||
var gotMd map[string]agentsdk.PostMetadataRequestDeprecated
|
||||
require.Eventually(t, func() bool {
|
||||
gotMd = client.GetMetadata()
|
||||
return len(gotMd) == 1
|
||||
|
||||
Reference in New Issue
Block a user