diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-11-11 16:13:42 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-11-11 16:13:42 +0900 |
| commit | 7774f6c21100df2d7fd8bb269e3df28638af7d73 (patch) | |
| tree | 48200ebec2f6423284811641085b6f348280465b /internal/kobject/kobject_test.go | |
| parent | d1703346a9421db0469841627b11722faf8c120e (diff) | |
internal/kobject: relax SEQNUM check
This can be incremented by other netlink uses.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/kobject/kobject_test.go')
| -rw-r--r-- | internal/kobject/kobject_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/kobject/kobject_test.go b/internal/kobject/kobject_test.go index c6a54904..41b8ec08 100644 --- a/internal/kobject/kobject_test.go +++ b/internal/kobject/kobject_test.go @@ -60,7 +60,7 @@ func TestConsume(t *testing.T) { DevPath: "\x00", }, }, nil, []error{ - BadSequenceError{Got: 0, Want: 1}, + BadSequenceError{Got: 0, Cur: 0}, }}, {"action", []*uevent.Message{ @@ -468,9 +468,9 @@ func TestErrors(t *testing.T) { want string }{ {"BadSequenceError", BadSequenceError{ - Got: 0xcafe, - Want: 0xbabe, - }, "SEQNUM=51966, want 47806"}, + Got: 0xcafe, + Cur: 0xbabe, + }, "SEQNUM=51966, current 47806"}, {"EUnexpectedColdboot", (&Event{ Action: 0xbeef, |
