Skip to content

Commit

Permalink
Add failure for example output
Browse files Browse the repository at this point in the history
  • Loading branch information
tateexon committed Apr 5, 2024
1 parent ed9f002 commit ee69ff8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,17 +154,19 @@ jobs:
run: |
echo "TIMEOUT=10m" >> $GITHUB_ENV
echo "COUNT=50" >> $GITHUB_ENV
- name: Install gotestloghelper
if: ${{ needs.filter.outputs.changes == 'true' }}
run: go install github.com/smartcontractkit/chainlink-testing-framework/tools/[email protected]
- name: Run tests
if: ${{ needs.filter.outputs.changes == 'true' }}
id: run-tests
env:
OUTPUT_FILE: ./output.txt
USE_TEE: true
USE_TEE: false
run: ./tools/bin/${{ matrix.type.cmd }} ./...
- name: Print Filtered Test Results
if: ${{ failure() && matrix.type.cmd == 'go_core_tests' && needs.filter.outputs.changes == 'true' }}
run: |
go install github.com/smartcontractkit/chainlink-testing-framework/tools/[email protected]
cat output.txt | gotestloghelper -ci
- name: Print Races
if: ${{ failure() && matrix.type.cmd == 'go_core_race_tests' && needs.filter.outputs.changes == 'true' }}
Expand Down
4 changes: 4 additions & 0 deletions common/client/node_lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,10 @@ func TestUnit_NodeLifecycle_start(t *testing.T) {
tests.AssertEventually(t, func() bool {
return node.State() == nodeStateInvalidChainID
})
for i := 0; i < 100; i++ {
t.Log("i=", i)
}
assert.Equal(t, "abc", "def", "force it to fail")
})
t.Run("if syncing verification fails, becomes unreachable", func(t *testing.T) {
t.Parallel()
Expand Down
1 change: 1 addition & 0 deletions core/sessions/user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func TestNewUser(t *testing.T) {
assert.NotEmpty(t, user.HashedPassword)
newHash, _ := utils.HashPassword(test.pwd)
assert.NotEqual(t, newHash, user.HashedPassword, "Salt should prevent equality")
assert.Equal(t, "abc", "def", "just to make it fail for example")
}
})
}
Expand Down

0 comments on commit ee69ff8

Please sign in to comment.