Skip to content

Commit 8752b95

Browse files
committed
[core] Make test more similar to real world behaviour
1 parent 92c9973 commit 8752b95

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

core/integration/odc/fairmq/fairmq.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424

2525
package fairmq
2626

27-
import "github.com/AliceO2Group/Control/core/task/sm"
27+
import (
28+
"github.com/AliceO2Group/Control/core/task/sm"
29+
)
2830

2931
var (
3032
fairMqStateMap map[string]sm.State

core/integration/odc/fairmq/fairmq_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ var _ = Describe("fairmq", func() {
4242
ecsState = sm.UNKNOWN
4343
})
4444
It("should correctly report ECS states for an ordinary environment lifecycle", func() {
45+
ecsState = ToEcsState("UNKNOWN", ecsState)
46+
Expect(ecsState).To(Equal(sm.UNKNOWN))
4547
ecsState = ToEcsState("IDLE", ecsState)
4648
Expect(ecsState).To(Equal(sm.STANDBY))
4749
ecsState = ToEcsState("INITIALIZING DEVICE", ecsState)

0 commit comments

Comments
 (0)