Skip to content

Commit

Permalink
added tests to github actions (lavanet#837)
Browse files Browse the repository at this point in the history
Co-authored-by: Yarom Swisa <[email protected] git config --global user.name Yarom>
  • Loading branch information
Yaroms and Yarom Swisa authored Sep 28, 2023
1 parent 28d09fd commit c55d76b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/consensus_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,26 @@ jobs:
######################################################
### Run Consensus unitests
######################################################
- name: lava utils unit Tests
run: go test ./utils/...

- name: lava common unit Tests
run: go test ./common/...

- name: lava pairing unit Tests
run: go test ./x/pairing/ ./x/pairing/keeper/... ./x/pairing/types
run: go test ./x/pairing/...

- name: lava epochstorage unit Tests
run: go test ./x/epochstorage/ ./x/epochstorage/keeper ./x/epochstorage/types
run: go test ./x/epochstorage/...

- name: lava spec unit Tests
run: go test ./x/spec/ ./x/spec/keeper ./x/spec/types
run: go test ./x/spec/...

- name: lava conflict unit Tests
run: go test ./x/conflict/ ./x/conflict/keeper ./x/conflict/types
run: go test ./x/conflict/...

- name: lava plans unit Tests
run: go test ./x/plans/ ./x/plans/keeper ./x/plans/types
run: go test ./x/plans/...

- name: lava projects unit Tests
run: go test ./x/projects/...
Expand Down
7 changes: 1 addition & 6 deletions utils/rand/rand_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@ func isUniformlyDistributed(t *testing.T, f func(n int64) int64) {

func TestDeterminism(t *testing.T) {
// copied from the output of the loop below
expected := []int64{
34, 18, 63, 3, 16, 24, 81, 49,
49, 65, 81, 66, 10, 89, 6, 85,
71, 68, 89, 52, 7, 4, 3, 21,
17, 90, 2, 36, 5, 4, 75, 93,
}
expected := []int64{64, 70, 6, 97, 97, 4, 0, 63, 31, 51, 37, 78, 39, 35, 33, 68, 0, 24, 32, 20, 89, 40, 27, 24, 67, 7, 95, 60, 11, 26, 16, 94}

rng := New([]byte("pre-determined-data"))

Expand Down

0 comments on commit c55d76b

Please sign in to comment.