summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2022-10-13 12:26:19 +0200
committerValery Piashchynski <[email protected]>2022-10-13 12:26:19 +0200
commit1e1ceb37416dc94a5d673fbcf59df44eefe8e791 (patch)
tree2ae9a97ce34a8ab26c3a3afb6fe08cb3c2728b30 /lib
parente95a42627258822618c0b5ac4d51d4a9216e7212 (diff)
update all plugins
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'lib')
-rw-r--r--lib/roadrunner_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/roadrunner_test.go b/lib/roadrunner_test.go
index a178e231..9ed7c80a 100644
--- a/lib/roadrunner_test.go
+++ b/lib/roadrunner_test.go
@@ -29,7 +29,7 @@ endure:
func makeConfig(t *testing.T, configYaml string) string {
cfgFile := os.TempDir() + "/.rr.yaml"
err := os.WriteFile(cfgFile, []byte(configYaml), 0600)
- assert.Nil(t, err)
+ assert.NoError(t, err)
return cfgFile
}
@@ -37,7 +37,7 @@ func makeConfig(t *testing.T, configYaml string) string {
func TestNewWithConfig(t *testing.T) {
cfgFile := makeConfig(t, testConfig)
rr, err := lib.NewRR(cfgFile, []string{}, lib.DefaultPluginsList())
- assert.Nil(t, err)
+ assert.NoError(t, err)
assert.Equal(t, "2", string(rr.Version[0]))
assert.Equal(t, fsm.Initialized, rr.CurrentState())
@@ -54,7 +54,7 @@ func TestServeStop(t *testing.T) {
&resetter.Plugin{},
}
rr, err := lib.NewRR(cfgFile, []string{}, plugins)
- assert.Nil(t, err)
+ assert.NoError(t, err)
errchan := make(chan error, 1)
stopchan := make(chan struct{}, 1)