mirror of
https://github.com/dragonheim/gagent.git
synced 2025-04-28 05:38:58 -07:00
fix: Replaced ioutil as it was deprecated in Golang.
This commit is contained in:
parent
82a964fc50
commit
97c8af8816
18 changed files with 105 additions and 114 deletions
|
@ -1,13 +1,13 @@
|
|||
package client
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
"sync"
|
||||
"testing"
|
||||
bytes "bytes"
|
||||
errors "errors"
|
||||
io "io"
|
||||
log "log"
|
||||
os "os"
|
||||
sync "sync"
|
||||
testing "testing"
|
||||
|
||||
gs "github.com/dragonheim/gagent/internal/gstructs"
|
||||
|
||||
|
@ -107,7 +107,7 @@ func equalStringSlices(a, b []string) bool {
|
|||
|
||||
func TestMain(t *testing.T) {
|
||||
// Prepare a temporary agent file for testing
|
||||
tmpAgentFile, err := ioutil.TempFile("", "agent")
|
||||
tmpAgentFile, err := io.TempFile("", "agent")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue