From c2e03edcbbab34f7fbc8e82239cd1a5a118a6bcd Mon Sep 17 00:00:00 2001 From: iseki Date: Thu, 1 Aug 2024 16:58:15 +0800 Subject: [PATCH] test(ivy): fix test context --- module/ivy/ivy_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/ivy/ivy_test.go b/module/ivy/ivy_test.go index 163a8b1d..733d8b24 100644 --- a/module/ivy/ivy_test.go +++ b/module/ivy/ivy_test.go @@ -2,6 +2,7 @@ package ivy import ( "bytes" + "context" _ "embed" "github.com/stretchr/testify/assert" "testing" @@ -11,7 +12,7 @@ import ( var sample1 []byte func TestParseIvy(t *testing.T) { - data, e := readIvyXml(nil, bytes.NewReader(sample1)) + data, e := readIvyXml(context.TODO(), bytes.NewReader(sample1)) assert.NoError(t, e) assert.NotEmpty(t, data.Dependencies) for _, d := range data.Dependencies {