Fixes issue generating d2chaos tests with shape: image

This commit is contained in:
Júlio César Batista 2022-12-06 13:07:30 -08:00
parent 6a4d31904c
commit 57258c3a27
No known key found for this signature in database
GPG key ID: 10C4B861BF314878

View file

@ -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
}
}