Skip to content

Commit 17090ae

Browse files
committed
fix: test Prebuilds_is_set_with_a_cache_invalidation_field_without_its_required_fields
1 parent 8baec44 commit 17090ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

provider/workspace_preset_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package provider_test
22

33
import (
4+
"fmt"
45
"regexp"
56
"testing"
67

@@ -157,7 +158,7 @@ func TestWorkspacePreset(t *testing.T) {
157158
cache_invalidation {}
158159
}
159160
}`,
160-
ExpectError: regexp.MustCompile("The argument \"invalidate_after_secs\" is required, but no definition was found."),
161+
ExpectError: regexp.MustCompile("The argument \"invalidate_after_secs\" is required,"),
161162
},
162163
{
163164
Name: "Prebuilds is set with a cache_invalidation field with its required fields",
@@ -210,6 +211,7 @@ func TestWorkspacePreset(t *testing.T) {
210211
t.Run(testcase.Name, func(t *testing.T) {
211212
t.Parallel()
212213

214+
fmt.Println("testcase.ExpectError: ", testcase.ExpectError)
213215
resource.Test(t, resource.TestCase{
214216
ProviderFactories: coderFactory(),
215217
IsUnitTest: true,

0 commit comments

Comments
 (0)