fix: avoid race with a deeper copy (#6285)

This commit is contained in:
Sam Kleinman
2021-03-26 15:15:45 -04:00
committed by GitHub
parent 19a375aaab
commit 0124593a61
5 changed files with 68 additions and 8 deletions
+1 -1
View File
@@ -299,7 +299,7 @@ func TestBitArrayFromProto(t *testing.T) {
expErr bool
}{
0: {nil, &BitArray{}, false},
1: {&tmprotobits.BitArray{}, &BitArray{}, false},
1: {&tmprotobits.BitArray{}, &BitArray{Elems: []uint64{}}, false},
2: {&tmprotobits.BitArray{Bits: 1, Elems: make([]uint64, 1)}, &BitArray{Bits: 1, Elems: make([]uint64, 1)}, false},