ChainSafe / ChainSafe/gossamer

Investigate and fix `TestPeerReputation` which randomly failed

Open
#2,518 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
454
Forks
144
PR merge metrics
No merged PRs in 30d

Description

[Logs](https://github.com/ChainSafe/gossamer/runs/6258382606?check_suite_focus=true) (pretty much development branch untouched Go code)

```go
--- FAIL: TestPeerReputation (6.18s)
host_test.go:682:
Error Trace: host_test.go:682
Error: Not equal:
expected: 1
actual : 0
Test: TestPeerReputation
```

It might be due to either:

- flaky time-dependent test; or
- `2022-05-02T14:02:18.399Z ERROR peerstore/ds pstoreds/keybook.go:85 error while updating pubkey in datastore for peer 12D3KooWS5fL7GA4WHDZxUx2DcbNBTWdGH5BZWeWWdQcQAqYhUM6: datastore closed`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.