e2etests-cli: Skip sketch test for now

This commit is contained in:
Anmol Sethi 2023-03-02 20:45:41 -08:00
parent 6724ea3eb3
commit 86de922ec0
No known key found for this signature in database
GPG key ID: 25BC68888A99A8BA

View file

@ -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()