mirror of
https://github.com/unpoller/unpoller.git
synced 2026-10-07 06:51:38 +02:00
Fix the error test.
This commit is contained in:
@@ -21,6 +21,6 @@ func TestFlexInt(t *testing.T) {
|
||||
a.EqualValues(FlexInt(5), r.Channel)
|
||||
a.Nil(json.Unmarshal(seven, &r))
|
||||
a.EqualValues(FlexInt(7), r.Channel)
|
||||
a.NotNil(json.Unmarshal(auto, &r))
|
||||
a.Nil(json.Unmarshal(auto, &r), "a regular string must not produce an unmarshal error")
|
||||
a.EqualValues(FlexInt(0), r.Channel)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user