Skip to content

network: fix TestServerRegisterPeer data race

Codecov / codecov/patch failed Feb 13, 2024 in 1s

21.05% of diff hit (target 84.96%)

View this Pull Request on Codecov

21.05% of diff hit (target 84.96%)

Annotations

Check warning on line 300 in pkg/consensus/consensus.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/consensus/consensus.go#L300

Added line #L300 was not covered by tests

Check warning on line 272 in pkg/network/server.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/network/server.go#L270-L272

Added lines #L270 - L272 were not covered by tests

Check warning on line 325 in pkg/network/server.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/network/server.go#L324-L325

Added lines #L324 - L325 were not covered by tests

Check warning on line 196 in pkg/services/oracle/oracle.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/services/oracle/oracle.go#L196

Added line #L196 was not covered by tests

Check warning on line 486 in pkg/services/rpcsrv/server.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/services/rpcsrv/server.go#L486

Added line #L486 was not covered by tests

Check warning on line 81 in pkg/services/stateroot/validators.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/services/stateroot/validators.go#L81

Added line #L81 was not covered by tests