Fixes issue generating d2chaos tests with shape: image
This commit is contained in:
parent
6a4d31904c
commit
57258c3a27
1 changed files with 1 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue