mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-27 05:15:47 +00:00
test error tweaks
This commit is contained in:
@@ -28,13 +28,13 @@ func TestGoodStringDecode(t *testing.T) {
|
||||
|
||||
gotString, ok := got.(string)
|
||||
if !ok {
|
||||
t.Errorf("string decode returned a %T payload: %s", got, got)
|
||||
t.Errorf("string.decode returned a %T payload: %s", got, got)
|
||||
}
|
||||
if err != nil {
|
||||
t.Errorf("string decode failed: %s", err)
|
||||
t.Errorf("string.decode failed: %s", err)
|
||||
}
|
||||
if gotString != test.expected {
|
||||
t.Errorf("String decode got %s, expected %s", got, test.expected)
|
||||
t.Errorf("string.decode got %s, expected %s", got, test.expected)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user