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) {
157157 cache_invalidation {}
158158 }
159159 }` ,
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.
160163 ExpectError : regexp .MustCompile ("The argument \" invalidate_after_secs\" is required," ),
161164 },
162165 {
@@ -209,7 +212,7 @@ func TestWorkspacePreset(t *testing.T) {
209212 for _ , testcase := range testcases {
210213 t .Run (testcase .Name , func (t * testing.T ) {
211214 t .Parallel ()
212-
215+
213216 resource .Test (t , resource.TestCase {
214217 ProviderFactories : coderFactory (),
215218 IsUnitTest : true ,
You can’t perform that action at this time.
0 commit comments