We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99941e4 commit 22d9a6eCopy full SHA for 22d9a6e
client_test.go
@@ -3,7 +3,7 @@ package wiremock
3
import (
4
"encoding/json"
5
"fmt"
6
- "io/ioutil"
+ "os"
7
"reflect"
8
"testing"
9
"time"
@@ -49,7 +49,7 @@ func TestStubRule_ToJson(t *testing.T) {
49
WhenScenarioStateIs("Started").
50
WillSetStateTo("Stopped")
51
52
- rawExpectedRequestBody, err := ioutil.ReadFile("expected-template.json")
+ rawExpectedRequestBody, err := os.ReadFile("expected-template.json")
53
if err != nil {
54
t.Fatalf("failed to read expected-template.json %v", err)
55
}
0 commit comments