Skip to content

Commit

Permalink
chore: optimize TestIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
ViolaPioggia committed Dec 18, 2023
1 parent f68a164 commit 4ae92ca
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/app/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1344,9 +1344,12 @@ func TestGetWriter(t *testing.T) {
func TestIndex(t *testing.T) {
ctx := NewContext(0)
ctx.ResetWithoutConn()
ctx.SetIndex(int8(1))
exc := int8(-1)
res := ctx.GetIndex()
exc := int8(1)
assert.DeepEqual(t, exc, res)
ctx.SetIndex(int8(1))
res = ctx.GetIndex()
exc = int8(1)
assert.DeepEqual(t, exc, res)
}

Expand Down

0 comments on commit 4ae92ca

Please sign in to comment.