Skip to content

Commit b900b30

Browse files
committed
fix tests
1 parent 558586d commit b900b30

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

provider/app.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func appResource() *schema.Resource {
8484
}
8585

8686
if !appSlugRegex.MatchString(valStr) {
87-
return diag.Errorf("invalid `coder_app` slug, must be a valid hostname (%q, cannot contain two consecutive hyphens or start/end with a hyphen): %q", appSlugRegex.String(), valStr)
87+
return diag.Errorf("invalid \"coder_app\" slug, must be a valid hostname (%q, cannot contain two consecutive hyphens or start/end with a hyphen): %q", appSlugRegex.String(), valStr)
8888
}
8989

9090
return nil
@@ -147,7 +147,7 @@ func appResource() *schema.Resource {
147147
return nil
148148
}
149149

150-
return diag.Errorf("invalid app share %q, must be one of `owner`, `authenticated`, `public`", valStr)
150+
return diag.Errorf("invalid app share %q, must be one of \"owner\", \"authenticated\", \"public\"", valStr)
151151
},
152152
},
153153
"url": {

provider/script.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ func scriptResource() *schema.Resource {
2626
cron, _ := rd.Get("cron").(string)
2727

2828
if !runOnStart && !runOnStop && cron == "" {
29-
return diag.Errorf("at least one of `run_on_start`, `run_on_stop`, or `cron` must be set")
29+
return diag.Errorf("at least one of \"run_on_start\", \"run_on_stop\", or \"cron\" must be set")
3030
}
3131
if !runOnStart && startBlocksLogin {
32-
return diag.Errorf("start_blocks_login can only be set if `run_on_start` is true")
32+
return diag.Errorf("\"start_blocks_login\" can only be set if \"run_on_start\" is true")
3333
}
3434
return nil
3535
},

0 commit comments

Comments
 (0)