align test err checking and logs

This commit is contained in:
Joel Wetzell
2026-03-02 20:53:00 -06:00
parent 30564523d7
commit d316147411
31 changed files with 76 additions and 62 deletions

View File

@@ -77,14 +77,15 @@ func TestGoodUintParse(t *testing.T) {
}
got, err := processorInstance.Process(t.Context(), test.payload)
if err != nil {
t.Fatalf("uint.parse processing failed: %s", err)
}
gotUint, ok := got.(uint64)
if !ok {
t.Fatalf("uint.parse returned a %T payload: %s", got, got)
}
if err != nil {
t.Fatalf("uint.parse failed: %s", err)
}
if gotUint != test.expected {
t.Fatalf("uint.parse got %d, expected %d", gotUint, test.expected)
}