Skip to content

Commit d6925d9

Browse files
fix tests
1 parent fc5bee7 commit d6925d9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/grpc-js/test/test-retry-config.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,19 +101,19 @@ const RETRY_TEST_CASES: TestCase[] = [
101101
retryableStatusCodes: [14],
102102
},
103103
error:
104-
/retry policy: initialBackoff must be a string consisting of a positive integer followed by s/,
104+
/retry policy: initialBackoff must be a string consisting of a positive integer or decimal followed by s/,
105105
},
106106
{
107107
description: 'a non-numeric initialBackoff',
108108
config: { ...validRetryConfig, initialBackoff: 'abcs' },
109109
error:
110-
/retry policy: initialBackoff must be a string consisting of a positive integer followed by s/,
110+
/retry policy: initialBackoff must be a string consisting of a positive integer or decimal followed by s/,
111111
},
112112
{
113113
description: 'an initialBackoff without an s',
114114
config: { ...validRetryConfig, initialBackoff: '123' },
115115
error:
116-
/retry policy: initialBackoff must be a string consisting of a positive integer followed by s/,
116+
/retry policy: initialBackoff must be a string consisting of a positive integer or decimal followed by s/,
117117
},
118118
{
119119
description: 'omitted maxBackoff',
@@ -124,19 +124,19 @@ const RETRY_TEST_CASES: TestCase[] = [
124124
retryableStatusCodes: [14],
125125
},
126126
error:
127-
/retry policy: maxBackoff must be a string consisting of a positive integer followed by s/,
127+
/retry policy: maxBackoff must be a string consisting of a positive integer or decimal followed by s/,
128128
},
129129
{
130130
description: 'a non-numeric maxBackoff',
131131
config: { ...validRetryConfig, maxBackoff: 'abcs' },
132132
error:
133-
/retry policy: maxBackoff must be a string consisting of a positive integer followed by s/,
133+
/retry policy: maxBackoff must be a string consisting of a positive integer or decimal followed by s/,
134134
},
135135
{
136136
description: 'an maxBackoff without an s',
137137
config: { ...validRetryConfig, maxBackoff: '123' },
138138
error:
139-
/retry policy: maxBackoff must be a string consisting of a positive integer followed by s/,
139+
/retry policy: maxBackoff must be a string consisting of a positive integer or decimal followed by s/,
140140
},
141141
{
142142
description: 'omitted backoffMultiplier',

0 commit comments

Comments
 (0)