etcd-io / raft

Raft library for maintaining a replicated state machine
Apache License 2.0
630 stars 160 forks source link

Test: Replace t.error/fatal with assert/request in [rawnode_test.go] #177

Closed MrDXY closed 6 months ago

MrDXY commented 6 months ago

Refactor: Replacing t.Error/t.Fatal with assert/require

This commit tries to eliminates boilerplate code in the testing suite by replacing occurrences of t.Error and t.Fatal with assertions from the assert and require packages.

Changes Made:

Affected Files:

Part of: #146

ahrtr commented 6 months ago

Please rebase this PR to resolve the workflow failure.