From a542225cd27e711983d1ac5dfff7916c7f44803a Mon Sep 17 00:00:00 2001 From: Matt Toohey Date: Wed, 22 May 2024 16:02:49 +1000 Subject: [PATCH] add retry test for bad whitespace --- backend/schema/validate_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/backend/schema/validate_test.go b/backend/schema/validate_test.go index 40f27092cc..b4799b4664 100644 --- a/backend/schema/validate_test.go +++ b/backend/schema/validate_test.go @@ -368,6 +368,17 @@ func TestValidate(t *testing.T) { `8:7-7: verb C: retry must have a minimum backoff of 1s`, }, }, + {name: "InvalidRetryInvalidSpace", + schema: ` + module one { + verb A(Empty) Unit + +retry 10 5 s + } + `, + errs: []string{ + `4:19: unexpected token "s"`, + }, + }, } for _, test := range tests {