Use c.Next() instead of c.index++ in UnitTest
This commit is contained in:
parent
74f5051cb5
commit
050a55b006
@ -417,7 +417,7 @@ func TestContextIsAborted(t *testing.T) {
|
||||
|
||||
assert.True(t, c.IsAborted())
|
||||
|
||||
c.index += 1
|
||||
c.Next()
|
||||
|
||||
assert.True(t, c.IsAborted())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user