Remove the Move to top node on empty input test case
This commit is contained in:
parent
df58f69032
commit
3d9eeddab8
@ -125,7 +125,6 @@ func (h *MenuHandlers) Init(ctx context.Context, sym string, input []byte) (reso
|
|||||||
|
|
||||||
h.st = h.pe.GetState()
|
h.st = h.pe.GetState()
|
||||||
h.ca = h.pe.GetMemory()
|
h.ca = h.pe.GetMemory()
|
||||||
``
|
|
||||||
sessionId, ok := ctx.Value("SessionId").(string)
|
sessionId, ok := ctx.Value("SessionId").(string)
|
||||||
if ok {
|
if ok {
|
||||||
ctx = context.WithValue(ctx, "SessionId", sessionId)
|
ctx = context.WithValue(ctx, "SessionId", sessionId)
|
||||||
|
@ -175,20 +175,6 @@ func TestInit(t *testing.T) {
|
|||||||
input: []byte("1"),
|
input: []byte("1"),
|
||||||
expectedResult: resource.Result{},
|
expectedResult: resource.Result{},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: "Move to top node on empty input",
|
|
||||||
setup: func() (*MenuHandlers, context.Context) {
|
|
||||||
pe := persist.NewPersister(testStore).WithSession(sessionId).WithContent(st, ca)
|
|
||||||
h := &MenuHandlers{
|
|
||||||
flagManager: fm,
|
|
||||||
pe: pe,
|
|
||||||
}
|
|
||||||
st.Code = []byte("some pending bytecode")
|
|
||||||
return h, context.WithValue(ctx, "SessionId", sessionId)
|
|
||||||
},
|
|
||||||
input: []byte(""),
|
|
||||||
expectedResult: resource.Result{},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, tt := range tests {
|
for _, tt := range tests {
|
||||||
|
Loading…
Reference in New Issue
Block a user