summaryrefslogtreecommitdiff
path: root/lib/roadrunner_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/roadrunner_test.go')
-rw-r--r--lib/roadrunner_test.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/roadrunner_test.go b/lib/roadrunner_test.go
index 9ed7c80a..d25e7380 100644
--- a/lib/roadrunner_test.go
+++ b/lib/roadrunner_test.go
@@ -5,7 +5,6 @@ import (
"testing"
"time"
- "github.com/roadrunner-server/endure/pkg/fsm"
"github.com/roadrunner-server/informer/v3"
"github.com/roadrunner-server/resetter/v3"
"github.com/roadrunner-server/roadrunner/v2/lib"
@@ -40,7 +39,6 @@ func TestNewWithConfig(t *testing.T) {
assert.NoError(t, err)
assert.Equal(t, "2", string(rr.Version[0]))
- assert.Equal(t, fsm.Initialized, rr.CurrentState())
t.Cleanup(func() {
_ = os.Remove(cfgFile)
@@ -64,16 +62,9 @@ func TestServeStop(t *testing.T) {
stopchan <- struct{}{}
}()
- assert.Equal(t, rr.CurrentState(), fsm.Initialized)
-
- for rr.CurrentState() != fsm.Started {
- time.Sleep(20 * time.Millisecond)
- }
-
rr.Stop()
time.Sleep(time.Second * 2)
- assert.Equal(t, fsm.Stopped, rr.CurrentState())
assert.Equal(t, struct{}{}, <-stopchan)
assert.Nil(t, <-errchan)