Browse Source

Use c.Next() instead of c.index++ in UnitTest

Adam Dratwinski 10 years ago
parent
commit
050a55b006
1 changed files with 1 additions and 1 deletions
  1. 1 1
      context_test.go

+ 1 - 1
context_test.go

@@ -417,7 +417,7 @@ func TestContextIsAborted(t *testing.T) {
 
 	assert.True(t, c.IsAborted())
 
-	c.index += 1
+	c.Next()
 
 	assert.True(t, c.IsAborted())
 }