From 050a55b006f2dd1c77c65064025b8156a361349b Mon Sep 17 00:00:00 2001 From: Adam Dratwinski Date: Thu, 2 Jul 2015 16:37:35 +0200 Subject: [PATCH] Use c.Next() instead of c.index++ in UnitTest --- context_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context_test.go b/context_test.go index 56c71c72..48dbed25 100644 --- a/context_test.go +++ b/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()) }