diff --git a/state/azure/cosmosdb/cosmosdb_query_test.go b/state/azure/cosmosdb/cosmosdb_query_test.go index 226cd87ac..c702fcb2d 100644 --- a/state/azure/cosmosdb/cosmosdb_query_test.go +++ b/state/azure/cosmosdb/cosmosdb_query_test.go @@ -7,7 +7,7 @@ package cosmosdb import ( "encoding/json" - "os" + "io/ioutil" "testing" "github.com/a8m/documentdb" @@ -119,7 +119,7 @@ func TestCosmosDbQuery(t *testing.T) { }, } for _, test := range tests { - data, err := os.ReadFile(test.input) + data, err := ioutil.ReadFile(test.input) assert.NoError(t, err) var qq query.Query err = json.Unmarshal(data, &qq) diff --git a/state/mongodb/mongodb_query_test.go b/state/mongodb/mongodb_query_test.go index e7cd69bad..4d0413fef 100644 --- a/state/mongodb/mongodb_query_test.go +++ b/state/mongodb/mongodb_query_test.go @@ -7,7 +7,7 @@ package mongodb import ( "encoding/json" - "os" + "io/ioutil" "testing" "github.com/stretchr/testify/assert" @@ -38,7 +38,7 @@ func TestMongoQuery(t *testing.T) { }, } for _, test := range tests { - data, err := os.ReadFile(test.input) + data, err := ioutil.ReadFile(test.input) assert.NoError(t, err) var qq query.Query err = json.Unmarshal(data, &qq) diff --git a/state/query/query_test.go b/state/query/query_test.go index 26f7fb928..ce4504556 100644 --- a/state/query/query_test.go +++ b/state/query/query_test.go @@ -7,7 +7,7 @@ package query import ( "encoding/json" - "os" + "io/ioutil" "testing" "github.com/stretchr/testify/assert" @@ -77,7 +77,7 @@ func TestQuery(t *testing.T) { }, } for _, test := range tests { - data, err := os.ReadFile(test.input) + data, err := ioutil.ReadFile(test.input) assert.NoError(t, err) var q Query err = json.Unmarshal(data, &q)