Skip to content

Commit 22d9a6e

Browse files
committed
Fix deprecated function in the test
1 parent 99941e4 commit 22d9a6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package wiremock
33
import (
44
"encoding/json"
55
"fmt"
6-
"io/ioutil"
6+
"os"
77
"reflect"
88
"testing"
99
"time"
@@ -49,7 +49,7 @@ func TestStubRule_ToJson(t *testing.T) {
4949
WhenScenarioStateIs("Started").
5050
WillSetStateTo("Stopped")
5151

52-
rawExpectedRequestBody, err := ioutil.ReadFile("expected-template.json")
52+
rawExpectedRequestBody, err := os.ReadFile("expected-template.json")
5353
if err != nil {
5454
t.Fatalf("failed to read expected-template.json %v", err)
5555
}

0 commit comments

Comments
 (0)