Skip to content

Commit 85d4875

Browse files
committed
Log gotMd on failure
1 parent 611fbd8 commit 85d4875

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

agent/agent_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,6 +1152,7 @@ func TestAgent_Metadata(t *testing.T) {
11521152
})
11531153

11541154
var gotMd map[string]agentsdk.PostMetadataRequest
1155+
11551156
require.Eventually(t, func() bool {
11561157
gotMd = client.GetMetadata()
11571158
return len(gotMd) == 1
@@ -1165,7 +1166,7 @@ func TestAgent_Metadata(t *testing.T) {
11651166
panic("unexpected number of metadata")
11661167
}
11671168
return !gotMd["greeting"].CollectedAt.Equal(collectedAt)
1168-
}, testutil.WaitShort, testutil.IntervalMedium)
1169+
}, testutil.WaitShort, testutil.IntervalMedium, "gotMd: %+v", gotMd)
11691170
})
11701171

11711172
t.Run("Many", func(t *testing.T) {

0 commit comments

Comments
 (0)