Skip to content
Snippets Groups Projects
Commit 81a8ab7a authored by Christoph Petrausch's avatar Christoph Petrausch
Browse files

Remove copies of mutex locks

parent a80c28b1
No related branches found
No related tags found
No related merge requests found
......@@ -141,9 +141,9 @@ func TestIPFromProtoIP(t *testing.T) {
},
}
for _, test := range tests {
res := IPFromProtoIP(&test.proto)
assert.Equal(t, test.expected, res, test.name)
for i := range tests {
res := IPFromProtoIP(&tests[i].proto)
assert.Equal(t, tests[i].expected, res, tests[i].name)
}
}
......
......@@ -153,9 +153,9 @@ func TestNewPrefixFromProtoPrefix(t *testing.T) {
},
}
for _, test := range tests {
res := NewPrefixFromProtoPrefix(&test.proto)
assert.Equal(t, test.expected, *res, test.name)
for i := range tests {
res := NewPrefixFromProtoPrefix(&tests[i].proto)
assert.Equal(t, tests[i].expected, *res, tests[i].name)
}
}
......
......@@ -50,7 +50,7 @@ func TestFSMAFIInitDispose(t *testing.T) {
wg := sync.WaitGroup{}
wg.Add(1)
assert.Equal(t, wg, f.updateSender.wg)
assert.EqualValues(t, &wg, &f.updateSender.wg)
assert.Equal(t, uint64(1), f.adjRIBOut.ClientCount())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment