Skip to content

Commit

Permalink
Fix static errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
robshakir committed Jul 20, 2024
1 parent 3d805fd commit 6eac287
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ygot/schema_tests/schema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package schematest

import (
"io/ioutil"
"os"
"reflect"
"testing"

Expand Down Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 6eac287

Please sign in to comment.