[windows_kext] Fix minor problems

This commit is contained in:
Vladimir Stoilov 2024-07-01 15:06:54 +03:00
parent 89657123ec
commit 2e3304809f
4 changed files with 10 additions and 4 deletions

View file

@ -22,6 +22,7 @@ func TestRustInfoFile(t *testing.T) {
for {
info, err := RecvInfo(file)
// First info should be with invalid size.
// This tests if invalid info data is handled properly.
if first {
if !errors.Is(err, ErrUnexpectedInfoSize) {
t.Errorf("unexpected error: %s\n", err)