From 7774f6c21100df2d7fd8bb269e3df28638af7d73 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 11 Nov 2026 16:13:42 +0900 Subject: internal/kobject: relax SEQNUM check This can be incremented by other netlink uses. Signed-off-by: Ophestra --- internal/kobject/kobject_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/kobject/kobject_test.go') 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, -- cgit v1.3.1