From 6eac28713448383e5e6337f70563f67cc92227a2 Mon Sep 17 00:00:00 2001 From: Rob Shakir Date: Fri, 19 Jul 2024 19:44:46 -0700 Subject: [PATCH] Fix static errors. --- ygot/schema_tests/schema_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ygot/schema_tests/schema_test.go b/ygot/schema_tests/schema_test.go index 8e0179bd..120c25d6 100644 --- a/ygot/schema_tests/schema_test.go +++ b/ygot/schema_tests/schema_test.go @@ -17,7 +17,7 @@ package schematest import ( - "io/ioutil" + "os" "reflect" "testing" @@ -511,7 +511,7 @@ func TestJSONOutput(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - want, err := ioutil.ReadFile(tt.wantFile) + want, err := os.ReadFile(tt.wantFile) if err != nil { t.Fatalf("cannot read wantfile, %v", err) } @@ -575,7 +575,7 @@ func TestMarshal7951(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - want, err := ioutil.ReadFile(tt.wantFile) + want, err := os.ReadFile(tt.wantFile) if err != nil { t.Fatalf("cannot read wantfile, %v", err) } @@ -653,7 +653,7 @@ func TestNotificationOutput(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - wantTxtpb, err := ioutil.ReadFile(tt.wantTextpb) + wantTxtpb, err := os.ReadFile(tt.wantTextpb) if err != nil { t.Fatalf("could not read textproto, %v", err) }