Skip to content

Commit

Permalink
add retry test for bad whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2e committed May 22, 2024
1 parent ecd7c05 commit 111b0ff
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions backend/schema/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 111b0ff

Please sign in to comment.