Jelajahi Sumber

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

Adam Dratwinski 11 tahun lalu
induk
melakukan
050a55b006
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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())
 }