From b44b656820e88ee033a64813725d07bf301c25dc Mon Sep 17 00:00:00 2001 From: Lynn Cyrin Date: Tue, 24 Dec 2019 07:22:30 -0800 Subject: [PATCH] failing test --- context_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/context_test.go b/context_test.go index 3cefcca..7bb30e1 100644 --- a/context_test.go +++ b/context_test.go @@ -293,6 +293,13 @@ func TestContext_Lineage(t *testing.T) { expect(t, lineage[1], parentCtx) } +func TestContext_BackgroundContextAttributeAccessing(t *testing.T) { + parentContext := context.Background() + ctx := NewContext(nil, nil, &Context{Context: parentContext}) + value := ctx.Bool("some-bool") + expect(t, value, false) +} + func TestContext_lookupFlagSet(t *testing.T) { set := flag.NewFlagSet("test", 0) set.Bool("local-flag", false, "doc")