fix: remote update failed

This commit is contained in:
2025-05-04 21:56:19 +08:00
parent c6b819f24f
commit 55e363d505
3 changed files with 153 additions and 53 deletions

View File

@@ -92,7 +92,7 @@ public class UDPServerTest
Assert.True(ret.HasValue);
var data = ret.Value;
Assert.Equal(address, data.Address);
Assert.Equal(number, Number.BytesToNumber(data.Data));
Assert.Equal(number, Number.BytesToUInt32(data.Data).Value);
}
}
@@ -112,7 +112,7 @@ public class UDPServerTest
Assert.True(ret.IsSuccessful);
var data = ret.Value;
Assert.True(data.IsSuccessful);
Assert.Equal(number, Number.BytesToNumber(data.ToBytes()));
Assert.Equal(number, Number.BytesToUInt32(data.ToBytes()).Value);
}
}
@@ -132,7 +132,7 @@ public class UDPServerTest
Assert.True(ret.IsSuccessful);
var data = ret.Value;
Assert.True(data.IsSuccessful);
Assert.Equal(number, Number.BytesToNumber(data.ToBytes()));
Assert.Equal(number, Number.BytesToUInt32(data.ToBytes()).Value);
}
}
}