Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generalized Multinode unit tests BCI-2283 #11066

Merged
Merged
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
d82ca2c
POC for generalized multinode tests
dhaidashenko Oct 24, 2023
9796283
sendOnly node tests
dhaidashenko Oct 26, 2023
d564ae5
multi node tests
dhaidashenko Oct 27, 2023
512d7f2
node fsm test & node aliveLoop
dhaidashenko Oct 30, 2023
f38a6a5
node lifecycle tests
dhaidashenko Oct 31, 2023
0b3fb54
increase test coverage
dhaidashenko Nov 1, 2023
cd5ef42
fixed flakey tests
dhaidashenko Nov 1, 2023
1897cf8
fixed rebase artifacts
dhaidashenko Nov 1, 2023
75e548c
nit fixes
dhaidashenko Nov 1, 2023
8d9f79b
regen mocks
dhaidashenko Nov 1, 2023
a987426
review fixes
dhaidashenko Nov 2, 2023
2bbceff
replace core/testutils with `chainlink-relay/pkg/utils/tests`
dhaidashenko Nov 3, 2023
cf8f6ea
Apply suggestions from code review
dhaidashenko Nov 3, 2023
fc78f38
update chainlink-relay
dhaidashenko Nov 3, 2023
351e5a5
make gomodtidy
dhaidashenko Nov 3, 2023
3b8e668
Update common/client/send_only_node_test.go
dhaidashenko Nov 3, 2023
332e351
simplify node state check
dhaidashenko Nov 6, 2023
9804373
sendOnly & node tests fixes
dhaidashenko Nov 6, 2023
aa3848f
make gomodtidy
dhaidashenko Nov 6, 2023
b7c2317
fix deps
dhaidashenko Nov 6, 2023
ac225dd
update relay
dhaidashenko Nov 6, 2023
7889b11
fix silly cleanup issue
dhaidashenko Nov 7, 2023
03a6c2d
Merge develop into feature/BCI-2283-generalized-multinode-tests
dhaidashenko Nov 7, 2023
91592ca
Apply suggestions from code review
dhaidashenko Nov 7, 2023
47043a3
review fixes
dhaidashenko Nov 7, 2023
54ef180
Merge branch 'develop' into feature/BCI-2283-generalized-multinode-tests
dhaidashenko Nov 7, 2023
ce748c3
Merge branch 'develop' into feature/BCI-2283-generalized-multinode-tests
dhaidashenko Nov 7, 2023
3123156
Merge branch 'develop' into feature/BCI-2283-generalized-multinode-tests
dhaidashenko Nov 8, 2023
1e837b3
Merge branch 'develop' into feature/BCI-2283-generalized-multinode-tests
dhaidashenko Nov 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions common/client/mock_hashable_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package client

import "cmp"

// Hashable - simple implementation of types.Hashable interface to be used as concrete type in tests
type Hashable string

func (h Hashable) Cmp(c Hashable) int {
return cmp.Compare(h, c)
}

func (h Hashable) String() string {
return string(h)
}

func (h Hashable) Bytes() []byte {
return []byte(h)
}
57 changes: 57 additions & 0 deletions common/client/mock_head_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

168 changes: 168 additions & 0 deletions common/client/mock_node_client_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 57 additions & 0 deletions common/client/mock_node_selector_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading