Skip to content

Test failures on Windows (TestRecvExpected_Timestamp_Restart and TestRecvObserved_Timestamp_Restart) #135

@v1v

Description

@v1v

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions