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 {
|
func (gs *dslGenState) randShape() string {
|
||||||
for {
|
for {
|
||||||
s := shapes[gs.rand.Intn(len(shapes))]
|
s := shapes[gs.rand.Intn(len(shapes))]
|
||||||
if s != "image" {
|
if s != d2target.ShapeImage {
|
||||||
return s
|
|
||||||
}
|
|
||||||
if s != "sequence_diagram" {
|
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue