Skip to content

Commit

Permalink
one more test fix
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Hamilton <[email protected]>
  • Loading branch information
pacificcode committed May 10, 2024
1 parent c8895f6 commit db53304
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/secret_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package server

import (
"encoding/json"
"io/ioutil"
"os"
"regexp"
"strconv"
Expand Down Expand Up @@ -698,7 +699,7 @@ func SearchWithoutField(t *testing.T, tss *Server) {
func initServer() (*Server, error) {
var config *Configuration

if cj, err := os.ReadFile("../test_config.json"); err == nil {
if cj, err := ioutil.ReadFile("../test_config.json"); err == nil {
config = new(Configuration)

_ = json.Unmarshal(cj, &config)
Expand All @@ -719,7 +720,7 @@ func initServer() (*Server, error) {
func initPlatformServer() (*Server, error) {
var config *Configuration

if cj, err := os.ReadFile("../test_config.json"); err == nil {
if cj, err := ioutil.ReadFile("../test_config.json"); err == nil {
config = new(Configuration)

err := json.Unmarshal(cj, &config)
Expand Down

0 comments on commit db53304

Please sign in to comment.