mirror of
https://github.com/rwinkhart/go-winio.git
synced 2026-09-05 16:47:31 -04:00
Switch to Go 1.23 and fix CI failures
Some new upcoming changes require us to use Go 1.23. However, if we switch to Go 1.23 some new linter errors are showing up. This commit fixes most of the errors and adds an exclusion for integer overflow errors. Signed-off-by: Amit <ambarve@microsoft.com>
This commit is contained in:
+2
-2
@@ -437,7 +437,7 @@ func TestHvSockCloseReadWriteDial(t *testing.T) {
|
||||
|
||||
n, err = c.Read(b)
|
||||
if n != 0 {
|
||||
return fmt.Errorf("server did not get EOF")
|
||||
return errors.New("server did not get EOF")
|
||||
}
|
||||
if !errors.Is(err, io.EOF) {
|
||||
return errors.New("server did not get EOF")
|
||||
@@ -632,7 +632,7 @@ func (u testUtil) Assert(b bool, msgs ...string) {
|
||||
return
|
||||
}
|
||||
u.T.Helper()
|
||||
u.T.Fatalf(msgJoin(msgs, "failed assertion"))
|
||||
u.T.Fatal(msgJoin(msgs, "failed assertion"))
|
||||
}
|
||||
|
||||
func (u testUtil) Is(err, target error, msgs ...string) {
|
||||
|
||||
Reference in New Issue
Block a user