Skip to content

Commit

Permalink
Fix deprecated function in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
walkerus committed Mar 20, 2023
1 parent 99941e4 commit 22d9a6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package wiremock
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"reflect"
"testing"
"time"
Expand Down Expand Up @@ -49,7 +49,7 @@ func TestStubRule_ToJson(t *testing.T) {
WhenScenarioStateIs("Started").
WillSetStateTo("Stopped")

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

0 comments on commit 22d9a6e

Please sign in to comment.