diff options
author | Valery Piashchynski <[email protected]> | 2023-02-16 14:00:26 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-02-16 14:00:26 +0100 |
commit | 18f526ad9eef19b57bdf1ad4b0252683f514c718 (patch) | |
tree | 7e402926ca0032e1dcf727f6177ce75e57fbefe5 /lib/roadrunner_test.go | |
parent | be1e0de24da385b0a2946b505647c71649780986 (diff) | |
parent | a5bb90d841c7c9e34f57db77498550a9e80395ab (diff) |
[#1466]: release: `v2.12.3`v2.12.3
Diffstat (limited to 'lib/roadrunner_test.go')
-rw-r--r-- | lib/roadrunner_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/roadrunner_test.go b/lib/roadrunner_test.go index 9ed7c80a..da2ea8af 100644 --- a/lib/roadrunner_test.go +++ b/lib/roadrunner_test.go @@ -2,6 +2,7 @@ package lib_test import ( "os" + "path" "testing" "time" @@ -10,6 +11,7 @@ import ( "github.com/roadrunner-server/resetter/v3" "github.com/roadrunner-server/roadrunner/v2/lib" "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" ) func TestNewFailsOnMissingConfig(t *testing.T) { @@ -27,9 +29,9 @@ endure: ` func makeConfig(t *testing.T, configYaml string) string { - cfgFile := os.TempDir() + "/.rr.yaml" + cfgFile := path.Join(os.TempDir(), ".rr.yaml") err := os.WriteFile(cfgFile, []byte(configYaml), 0600) - assert.NoError(t, err) + require.NoError(t, err) return cfgFile } |