Ensuring passing context across fission (#2555)

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
Sanket Sudake
2022-09-26 16:05:45 +05:30
committed by GitHub
parent a8a81ef5be
commit 3fa0f4bde3
43 changed files with 301 additions and 300 deletions
+3 -1
View File
@@ -14,6 +14,8 @@ import (
)
func TestTracker(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
t.Run("NewTracker", func(test *testing.T) {
for _, test := range []struct {
name string
@@ -101,7 +103,7 @@ func TestTracker(t *testing.T) {
defer server.Close()
tr.gaAPIURL = server.URL
t := tr.SendEvent(context.Background(), *test.request)
t := tr.SendEvent(ctx, *test.request)
if test.status == http.StatusOK {
assert.Nil(testing, t, test.expected)
} else {