Fix invalid connection weight test

4 jobs for master in 2 minutes and 46 seconds (queued for 6 seconds)
latest
Status Job ID Name Coverage
  Check
passed #517
go lint

00:00:53

 
  Build
passed #518
go build

00:00:25

 
  Test
passed #519
go test

00:00:21

86.2%
passed #520
go test -race

00:01:27