Closed Juneezee closed 1 year ago
Thank you very much!
Currently integration tests do not function on PRs as credentials for test domains are not visible on them, probably it is time for me to introduce test docker image for Syncloud DDNS service to use. https://github.com/syncloud/platform/issues/662
Still meging this of cause.
The
io/ioutil
package has been deprecated in Go 1.16 (See https://pkg.go.dev/io/ioutil). This PR replaces the existingio/ioutil
functions with their new definitions inio
andos
packages.ioutil.Discard
=>io.Discard
ioutil.NopCloser
=>io.NopCloser
ioutil.ReadAll
=>io.ReadAll
ioutil.ReadDir
=>os.ReadDir
ioutil.ReadFile
=>os.ReadFile
ioutil.TempDir
=>os.MkdirTemp
ioutil.TempFile
=>os.CreateTemp
ioutil.WriteFile
=>os.WriteFile
ioutil.TempDir
in*_test.go
files can be replaced witht.TempDir
from thetesting
package. The directory created byt.TempDir
is automatically removed when the test and all its subtests complete.Reference: https://pkg.go.dev/testing#T.TempDir