Skip to content

Commit 0d7b2c2

Browse files
authored
fix(source/wrappers): race condition in tests (#5841)
1 parent ad3d958 commit 0d7b2c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/wrappers/multisource_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ func testMultiSourceEndpoints(t *testing.T) {
6565
},
6666
{
6767
"single non-empty child source returns child's endpoints",
68-
[][]*endpoint.Endpoint{{foo}},
69-
[]*endpoint.Endpoint{foo},
68+
[][]*endpoint.Endpoint{{foo.DeepCopy()}},
69+
[]*endpoint.Endpoint{foo.DeepCopy()},
7070
},
7171
{
7272
"multiple non-empty child sources returns merged children's endpoints",
73-
[][]*endpoint.Endpoint{{foo}, {bar}},
74-
[]*endpoint.Endpoint{foo, bar},
73+
[][]*endpoint.Endpoint{{foo.DeepCopy()}, {bar.DeepCopy()}},
74+
[]*endpoint.Endpoint{foo.DeepCopy(), bar.DeepCopy()},
7575
},
7676
} {
7777

0 commit comments

Comments
 (0)