-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
After enabling Windows, see #120
There are some test failure happening on Windows:
observed_test.go:343:
Error Trace: D:/a/elastic-agent-client/elastic-agent-client/pkg/client/chunk/observed_test.go:343
Error: Should be empty, but was (*proto.CheckinObserved)(Inverse(protocmp.Transform, protocmp.Message{
... // 2 identical entries
"features_idx": uint64(2),
"token": string("token"),
"units": []protocmp.Message{
{
"@type": s"proto.UnitObserved",
"config_state_idx": uint64(1),
- "id": string("second-one"),
+ "id": string("first-one"),
"message": string("Healthy"),
"payload": protocmp.Message{"@type": s"google.protobuf.Struct", "fields": map[string]protocmp.Message{"large": {"@type": s"google.protobuf.Value", "string_value": string("this structure places this unit over the maximum size")}}},
... // 2 identical entries
},
+ s`{id:"first-two" config_state_idx:1 state:HEALTHY message:"Healthy"}`,
{"@type": s"proto.UnitObserved", "config_state_idx": uint64(1), "id": string("second-two"), "message": string("Healthy"), ...},
},
}))
Test: TestRecvObserved_Timestamp_Restart
--- FAIL: TestRecvObserved_Timestamp_Restart (0.00s)
and
expected_test.go:335:
Error Trace: D:/a/elastic-agent-client/elastic-agent-client/pkg/client/chunk/expected_test.go:335
Error: Should be empty, but was (*proto.CheckinExpected)(Inverse(protocmp.Transform, protocmp.Message{
"@type": s"proto.CheckinExpected",
"component_idx": uint64(3),
"features_idx": uint64(2),
"units": []protocmp.Message{
{
"@type": s"proto.UnitExpected",
"config": protocmp.Message{"@type": s"proto.UnitExpectedConfig", "id": string("testing"), "name": string("testing"), "type": string("testing")},
"config_state_idx": uint64(1),
- "id": string("second-one"),
+ "id": string("first-one"),
"state": s"HEALTHY",
"type": s"OUTPUT",
},
+ s`{id:"first-two" state:HEALTHY config_state_idx:1}`,
{"@type": s"proto.UnitExpected", "config_state_idx": uint64(1), "id": string("second-two"), "state": s"HEALTHY"},
},
}))
Test: TestRecvExpected_Timestamp_Restart
--- FAIL: TestRecvExpected_Timestamp_Restart (0.00s)
Those tests have been disabled for the timebeing on Windows.
Metadata
Metadata
Assignees
Labels
No labels