mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-27 05:15:47 +00:00
align test err checking and logs
This commit is contained in:
@@ -96,14 +96,15 @@ func TestGoodUintRandom(t *testing.T) {
|
||||
}
|
||||
|
||||
got, err := processorInstance.Process(t.Context(), test.payload)
|
||||
if err != nil {
|
||||
t.Fatalf("uint.random processing failed: %s", err)
|
||||
}
|
||||
|
||||
gotUint, ok := got.(uint)
|
||||
if !ok {
|
||||
t.Fatalf("uint.random returned a %T payload: %s", got, got)
|
||||
}
|
||||
if err != nil {
|
||||
t.Fatalf("uint.random failed: %s", err)
|
||||
}
|
||||
|
||||
minNum, ok := test.params["min"].(int)
|
||||
if !ok {
|
||||
t.Fatalf("uint.random test min param is not a number")
|
||||
|
||||
Reference in New Issue
Block a user