File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,9 @@ func TestWorkspacePreset(t *testing.T) {
157
157
cache_invalidation {}
158
158
}
159
159
}` ,
160
+ // Note: Match only the beginning of the error message to make the test more reliable.
161
+ // The full error message includes formatting differences like newlines, which could
162
+ // cause the test to fail unnecessarily.
160
163
ExpectError : regexp .MustCompile ("The argument \" invalidate_after_secs\" is required," ),
161
164
},
162
165
{
@@ -209,7 +212,7 @@ func TestWorkspacePreset(t *testing.T) {
209
212
for _ , testcase := range testcases {
210
213
t .Run (testcase .Name , func (t * testing.T ) {
211
214
t .Parallel ()
212
-
215
+
213
216
resource .Test (t , resource.TestCase {
214
217
ProviderFactories : coderFactory (),
215
218
IsUnitTest : true ,
You can’t perform that action at this time.
0 commit comments