fix(source/wrappers): race condition in tests (#5841)

This commit is contained in:
vflaux 2025-09-16 17:22:14 +02:00 committed by GitHub
parent ad3d958e4a
commit 0d7b2c2250
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,13 +65,13 @@ func testMultiSourceEndpoints(t *testing.T) {
},
{
"single non-empty child source returns child's endpoints",
[][]*endpoint.Endpoint{{foo}},
[]*endpoint.Endpoint{foo},
[][]*endpoint.Endpoint{{foo.DeepCopy()}},
[]*endpoint.Endpoint{foo.DeepCopy()},
},
{
"multiple non-empty child sources returns merged children's endpoints",
[][]*endpoint.Endpoint{{foo}, {bar}},
[]*endpoint.Endpoint{foo, bar},
[][]*endpoint.Endpoint{{foo.DeepCopy()}, {bar.DeepCopy()}},
[]*endpoint.Endpoint{foo.DeepCopy(), bar.DeepCopy()},
},
} {