From 3e54a0ecd7792c31177bb267c18a1b3f0386ed13 Mon Sep 17 00:00:00 2001 From: wingkwong Date: Tue, 25 Feb 2020 15:36:37 +0800 Subject: [PATCH] fix: add missing context to gist create command test case --- command/gist_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/command/gist_test.go b/command/gist_test.go index 0285d5678..eeaac4701 100644 --- a/command/gist_test.go +++ b/command/gist_test.go @@ -5,9 +5,16 @@ import ( "encoding/json" "io/ioutil" "testing" + + "github.com/cli/cli/context" ) func TestGistCreate(t *testing.T) { + ctx := context.NewBlank() + initContext = func() context.Context { + return ctx + } + http := initFakeHTTP() http.StubResponse(200, bytes.NewBufferString(`