From 86de922ec01cf527eaced9f97d9bb9d58be767fc Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Thu, 2 Mar 2023 20:45:41 -0800 Subject: [PATCH] e2etests-cli: Skip sketch test for now --- e2etests-cli/main_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/e2etests-cli/main_test.go b/e2etests-cli/main_test.go index f9b4c4565..a844b7331 100644 --- a/e2etests-cli/main_test.go +++ b/e2etests-cli/main_test.go @@ -18,6 +18,7 @@ func TestCLI_E2E(t *testing.T) { tca := []struct { name string + skip bool run func(t *testing.T, ctx context.Context, dir string, env *xos.Env) }{ { @@ -42,6 +43,8 @@ func TestCLI_E2E(t *testing.T) { }, { name: "hello_world_png_sketch", + // https://github.com/terrastruct/d2/pull/963#pullrequestreview-1323089392 + skip: true, run: func(t *testing.T, ctx context.Context, dir string, env *xos.Env) { writeFile(t, dir, "hello-world.d2", `x -> y`) err := runTestMain(t, ctx, dir, env, "--sketch", "hello-world.d2", "hello-world.png") @@ -124,6 +127,10 @@ scenarios: { t.Run(tc.name, func(t *testing.T) { t.Parallel() + if tc.skip { + t.SkipNow() + } + ctx, cancel := context.WithTimeout(ctx, time.Minute*5) defer cancel()