From 57258c3a275b5e25b2a7724192fe1827337e0118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlio=20C=C3=A9sar=20Batista?= Date: Tue, 6 Dec 2022 13:07:30 -0800 Subject: [PATCH] Fixes issue generating d2chaos tests with shape: image --- d2chaos/d2chaos.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/d2chaos/d2chaos.go b/d2chaos/d2chaos.go index 2f9f670d5..7729454a8 100644 --- a/d2chaos/d2chaos.go +++ b/d2chaos/d2chaos.go @@ -246,10 +246,7 @@ func (gs *dslGenState) randStr(n int, inKey bool) string { func (gs *dslGenState) randShape() string { for { s := shapes[gs.rand.Intn(len(shapes))] - if s != "image" { - return s - } - if s != "sequence_diagram" { + if s != d2target.ShapeImage { return s } }